@cloud-ru/ft-config-vitest 1.3.5 → 1.3.6-preview-3b66cb4.0
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/dist/cjs/index.js +4 -0
- package/dist/esm/index.js +4 -0
- package/package.json +2 -2
- package/src/index.ts +4 -0
package/dist/cjs/index.js
CHANGED
|
@@ -13,6 +13,10 @@ function default_1(userConfig, { unitEnvironment = 'jsdom', useAliases = true }
|
|
|
13
13
|
alias: useAliases ? (0, tsconfigPathsConverter_1.tsconfigPathsConverter)(path_1.default.resolve(process.cwd(), 'tsconfig.json')) : undefined,
|
|
14
14
|
},
|
|
15
15
|
test: {
|
|
16
|
+
// Хранилища jsdom должны заменять встроенный Web Storage Node.
|
|
17
|
+
execArgv: process.allowedNodeEnvironmentFlags.has('--no-experimental-webstorage')
|
|
18
|
+
? ['--no-experimental-webstorage']
|
|
19
|
+
: [],
|
|
16
20
|
snapshotFormat: {
|
|
17
21
|
escapeString: true,
|
|
18
22
|
},
|
package/dist/esm/index.js
CHANGED
|
@@ -7,6 +7,10 @@ export default function (userConfig, { unitEnvironment = 'jsdom', useAliases = t
|
|
|
7
7
|
alias: useAliases ? tsconfigPathsConverter(path.resolve(process.cwd(), 'tsconfig.json')) : undefined,
|
|
8
8
|
},
|
|
9
9
|
test: {
|
|
10
|
+
// Хранилища jsdom должны заменять встроенный Web Storage Node.
|
|
11
|
+
execArgv: process.allowedNodeEnvironmentFlags.has('--no-experimental-webstorage')
|
|
12
|
+
? ['--no-experimental-webstorage']
|
|
13
|
+
: [],
|
|
10
14
|
snapshotFormat: {
|
|
11
15
|
escapeString: true,
|
|
12
16
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/ft-config-vitest",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6-preview-3b66cb4.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Nikita Karpenko",
|
|
6
6
|
"url": "https://github.com/skaele"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"url": "https://github.com/cloud-ru-tech/frontend-tools.git",
|
|
32
32
|
"directory": "packages/config-vitest"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8a13060ad5dffd76631a5c502cab9fe17e6742f6"
|
|
35
35
|
}
|
package/src/index.ts
CHANGED
|
@@ -24,6 +24,10 @@ export default function (userConfig?: ViteUserConfig, { unitEnvironment = 'jsdom
|
|
|
24
24
|
alias: useAliases ? tsconfigPathsConverter(path.resolve(process.cwd(), 'tsconfig.json')) : undefined,
|
|
25
25
|
},
|
|
26
26
|
test: {
|
|
27
|
+
// Хранилища jsdom должны заменять встроенный Web Storage Node.
|
|
28
|
+
execArgv: process.allowedNodeEnvironmentFlags.has('--no-experimental-webstorage')
|
|
29
|
+
? ['--no-experimental-webstorage']
|
|
30
|
+
: [],
|
|
27
31
|
snapshotFormat: {
|
|
28
32
|
escapeString: true,
|
|
29
33
|
},
|