@quiesco/vitest 0.4.1 → 0.5.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/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/package.json +2 -2
- package/src/config.ts +2 -2
package/dist/config.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - `isolate: false`: a worker keeps its session (the device and the app) across test files (findings
|
|
10
10
|
* 6.10 batch B). `workers` (default 1) worker processes run files in parallel, each on its own device
|
|
11
11
|
* (Phase 6.12): `quiesco({ workers: 2 })`, or `--fileParallelism --maxWorkers 2` on the command line.
|
|
12
|
-
* - The platform tags are declared, so `test(name, { tags: ['@ios'] }, …)` is accepted.
|
|
12
|
+
* - The platform and browser tags are declared, so `test(name, { tags: ['@ios'] }, …)` is accepted.
|
|
13
13
|
* - `testTimeout`: the first test also waits for the session (booting a device can take minutes).
|
|
14
14
|
* - `quiescoPlugin()` (in `plugins`) sends the run's progress to `quiesco test` / `quiesco ui`.
|
|
15
15
|
*/
|
|
@@ -17,7 +17,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
17
17
|
import { DEFAULT_TAGS, RUN_EVENTS_ENV } from '@quiesco/core';
|
|
18
18
|
export function quiesco(options = {}) {
|
|
19
19
|
const names = { ...DEFAULT_TAGS, ...options.tags };
|
|
20
|
-
const declared = [...new Set([names.ios, names.android, names.web, names.native, names.hardReset, ...(options.extraTags ?? [])])];
|
|
20
|
+
const declared = [...new Set([names.ios, names.android, names.web, names.native, names.chromium, names.firefox, names.webkit, names.hardReset, ...(options.extraTags ?? [])])];
|
|
21
21
|
return {
|
|
22
22
|
pool: 'forks',
|
|
23
23
|
isolate: false,
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,aAAa,EAAE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AC,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC;QAC3C,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,IAAI,CAAC,CAAC;QAC7C,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,OAAO;QAC3C,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,OAAO;QAC3C,eAAe,EAAE,OAAO;QACxB,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QACxC,oFAAoF;QACpF,mBAAmB,EAAE,IAAI;KAC1B,CAAC;AACJ,CAAC;AAOD;;;;;GAKG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,eAAe,CAAC,EAAE,MAAM,EAA0B;YAChD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAC5C,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,EAAE;gBAAE,OAAO;YACpD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAC/F,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiesco/vitest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Quiesco for Vitest: one session for the run, `app` as a test fixture, a reset before every test",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "h2nology",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"src"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@quiesco/core": "0.
|
|
55
|
+
"@quiesco/core": "0.5.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"vitest": ">=5.1"
|
package/src/config.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - `isolate: false`: a worker keeps its session (the device and the app) across test files (findings
|
|
10
10
|
* 6.10 batch B). `workers` (default 1) worker processes run files in parallel, each on its own device
|
|
11
11
|
* (Phase 6.12): `quiesco({ workers: 2 })`, or `--fileParallelism --maxWorkers 2` on the command line.
|
|
12
|
-
* - The platform tags are declared, so `test(name, { tags: ['@ios'] }, …)` is accepted.
|
|
12
|
+
* - The platform and browser tags are declared, so `test(name, { tags: ['@ios'] }, …)` is accepted.
|
|
13
13
|
* - `testTimeout`: the first test also waits for the session (booting a device can take minutes).
|
|
14
14
|
* - `quiescoPlugin()` (in `plugins`) sends the run's progress to `quiesco test` / `quiesco ui`.
|
|
15
15
|
*/
|
|
@@ -31,7 +31,7 @@ export interface QuiescoVitestOptions {
|
|
|
31
31
|
|
|
32
32
|
export function quiesco(options: QuiescoVitestOptions = {}) {
|
|
33
33
|
const names = { ...DEFAULT_TAGS, ...options.tags };
|
|
34
|
-
const declared = [...new Set([names.ios, names.android, names.web, names.native, names.hardReset, ...(options.extraTags ?? [])])];
|
|
34
|
+
const declared = [...new Set([names.ios, names.android, names.web, names.native, names.chromium, names.firefox, names.webkit, names.hardReset, ...(options.extraTags ?? [])])];
|
|
35
35
|
return {
|
|
36
36
|
pool: 'forks' as const,
|
|
37
37
|
isolate: false,
|