@ohos-ports/nuxt-test-utils 0.0.0-stage → 4.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +20 -2
  3. package/dirs.js +4 -0
  4. package/dist/browser/index.d.mts +7 -0
  5. package/dist/browser/index.mjs +12 -0
  6. package/dist/browser/pure.d.mts +2 -0
  7. package/dist/browser/pure.mjs +1 -0
  8. package/dist/config.d.mts +82 -0
  9. package/dist/config.mjs +336 -0
  10. package/dist/e2e/dev-server.d.mts +1 -0
  11. package/dist/e2e/dev-server.mjs +10 -0
  12. package/dist/e2e-BO5mj9tk.d.mts +244 -0
  13. package/dist/e2e-DzsWJ8cS.mjs +373 -0
  14. package/dist/e2e.d.mts +2 -0
  15. package/dist/e2e.mjs +3 -0
  16. package/dist/experimental.d.mts +5 -0
  17. package/dist/experimental.mjs +20 -0
  18. package/dist/interface-Dhh_nx8F.mjs +34 -0
  19. package/dist/module.d.mts +32 -0
  20. package/dist/module.mjs +987 -0
  21. package/dist/playwright.d.mts +33 -0
  22. package/dist/playwright.mjs +68 -0
  23. package/dist/pure-Ba9-jZYN.d.mts +56 -0
  24. package/dist/pure-C_CSGRkt.mjs +114 -0
  25. package/dist/runtime/browser-entry.mjs +15 -0
  26. package/dist/runtime/entry.mjs +19 -0
  27. package/dist/runtime/global-setup.mjs +15 -0
  28. package/dist/runtime/mocks/vue-devtools.mjs +11 -0
  29. package/dist/runtime/nuxt-root.mjs +17 -0
  30. package/dist/runtime/shared/environment.mjs +67 -0
  31. package/dist/runtime/shared/h3-v1.mjs +32 -0
  32. package/dist/runtime/shared/h3-v2.mjs +34 -0
  33. package/dist/runtime/shared/h3.mjs +5 -0
  34. package/dist/runtime/shared/nuxt.mjs +17 -0
  35. package/dist/runtime/shared/vue-wrapper-plugin.mjs +42 -0
  36. package/dist/runtime-utils/index.d.mts +208 -0
  37. package/dist/runtime-utils/index.mjs +276 -0
  38. package/dist/server-Vl1UKNYB.mjs +301 -0
  39. package/dist/suspended-BbyJTvUP.d.mts +45 -0
  40. package/dist/suspended-Bjq6Zao6.mjs +1 -0
  41. package/dist/suspended-UrdAzOmb.mjs +255 -0
  42. package/dist/utils-CCklE0VI.mjs +196 -0
  43. package/dist/vitest-environment.d.mts +42 -0
  44. package/dist/vitest-environment.mjs +318 -0
  45. package/dist/vitest-wrapper/cli.d.mts +1 -0
  46. package/dist/vitest-wrapper/cli.mjs +81 -0
  47. package/package.json +145 -4
@@ -0,0 +1,32 @@
1
+ import { TestUserConfig } from "vitest/config";
2
+ export interface NuxtVitestOptions {
3
+ startOnBoot?: boolean;
4
+ logToConsole?: boolean;
5
+ vitestConfig?: TestUserConfig;
6
+ /**
7
+ * Remove testId attribute (case-insensitive) from Vue `<template>` at compile time.
8
+ * - `true`: remove `data-testid`
9
+ * - `string`: pass an attribute name to remove.
10
+ * - `false`: disable this feature.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * // nuxt.config.ts
15
+ * export default defineNuxtConfig({
16
+ * modules: ['@nuxt/test-utils/module'],
17
+ * $production: {
18
+ * testUtils: {
19
+ * // Remove `data-testid` in production builds
20
+ * removeTestIdAttribute: true,
21
+ * // Or specify custom attribute
22
+ * // removeTestIdAttribute: 'data-cy',
23
+ * },
24
+ * },
25
+ * })
26
+ * ```
27
+ * @default false
28
+ */
29
+ removeTestIdAttribute?: boolean | string;
30
+ }
31
+ declare const _default: import("@nuxt/schema").NuxtModule<NuxtVitestOptions, NuxtVitestOptions, false>;
32
+ export { _default as default };