@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.
- package/LICENSE +21 -0
- package/README.md +20 -2
- package/dirs.js +4 -0
- package/dist/browser/index.d.mts +7 -0
- package/dist/browser/index.mjs +12 -0
- package/dist/browser/pure.d.mts +2 -0
- package/dist/browser/pure.mjs +1 -0
- package/dist/config.d.mts +82 -0
- package/dist/config.mjs +336 -0
- package/dist/e2e/dev-server.d.mts +1 -0
- package/dist/e2e/dev-server.mjs +10 -0
- package/dist/e2e-BO5mj9tk.d.mts +244 -0
- package/dist/e2e-DzsWJ8cS.mjs +373 -0
- package/dist/e2e.d.mts +2 -0
- package/dist/e2e.mjs +3 -0
- package/dist/experimental.d.mts +5 -0
- package/dist/experimental.mjs +20 -0
- package/dist/interface-Dhh_nx8F.mjs +34 -0
- package/dist/module.d.mts +32 -0
- package/dist/module.mjs +987 -0
- package/dist/playwright.d.mts +33 -0
- package/dist/playwright.mjs +68 -0
- package/dist/pure-Ba9-jZYN.d.mts +56 -0
- package/dist/pure-C_CSGRkt.mjs +114 -0
- package/dist/runtime/browser-entry.mjs +15 -0
- package/dist/runtime/entry.mjs +19 -0
- package/dist/runtime/global-setup.mjs +15 -0
- package/dist/runtime/mocks/vue-devtools.mjs +11 -0
- package/dist/runtime/nuxt-root.mjs +17 -0
- package/dist/runtime/shared/environment.mjs +67 -0
- package/dist/runtime/shared/h3-v1.mjs +32 -0
- package/dist/runtime/shared/h3-v2.mjs +34 -0
- package/dist/runtime/shared/h3.mjs +5 -0
- package/dist/runtime/shared/nuxt.mjs +17 -0
- package/dist/runtime/shared/vue-wrapper-plugin.mjs +42 -0
- package/dist/runtime-utils/index.d.mts +208 -0
- package/dist/runtime-utils/index.mjs +276 -0
- package/dist/server-Vl1UKNYB.mjs +301 -0
- package/dist/suspended-BbyJTvUP.d.mts +45 -0
- package/dist/suspended-Bjq6Zao6.mjs +1 -0
- package/dist/suspended-UrdAzOmb.mjs +255 -0
- package/dist/utils-CCklE0VI.mjs +196 -0
- package/dist/vitest-environment.d.mts +42 -0
- package/dist/vitest-environment.mjs +318 -0
- package/dist/vitest-wrapper/cli.d.mts +1 -0
- package/dist/vitest-wrapper/cli.mjs +81 -0
- 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 };
|