virmator 6.4.4 → 6.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.
|
@@ -51,10 +51,15 @@ function createScreenshotsPlugin(extraOptions, repoDir) {
|
|
|
51
51
|
];
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export function createPlaywrightBrowserContextWithTimezoneId({browser, timezoneId = 'GMT'}) {
|
|
55
|
+
return browser.newContext({timezoneId});
|
|
56
|
+
}
|
|
57
|
+
|
|
54
58
|
export function getWebTestRunnerConfigWithCoveragePercent({
|
|
55
59
|
coveragePercent = 0,
|
|
56
60
|
packageRootDirPath = '',
|
|
57
61
|
extraScreenshotOptions,
|
|
62
|
+
timezoneId = 'GMT',
|
|
58
63
|
}) {
|
|
59
64
|
/** @type {import('@web/test-runner').TestRunnerConfig} */
|
|
60
65
|
const webTestRunnerConfig = {
|
|
@@ -62,14 +67,26 @@ export function getWebTestRunnerConfigWithCoveragePercent({
|
|
|
62
67
|
...(process.argv.includes('--only-one-browser')
|
|
63
68
|
? []
|
|
64
69
|
: [
|
|
65
|
-
playwrightLauncher({
|
|
66
|
-
|
|
70
|
+
playwrightLauncher({
|
|
71
|
+
product: 'chromium',
|
|
72
|
+
createPlaywrightBrowserContext: (browser) =>
|
|
73
|
+
createPlaywrightBrowserContextWithTimezoneId({browser, timezoneId}),
|
|
74
|
+
}),
|
|
75
|
+
playwrightLauncher({
|
|
76
|
+
product: 'firefox',
|
|
77
|
+
createPlaywrightBrowserContext: (browser) =>
|
|
78
|
+
createPlaywrightBrowserContextWithTimezoneId({browser, timezoneId}),
|
|
79
|
+
}),
|
|
67
80
|
]),
|
|
68
|
-
playwrightLauncher({
|
|
81
|
+
playwrightLauncher({
|
|
82
|
+
product: 'webkit',
|
|
83
|
+
createPlaywrightBrowserContext: (browser) =>
|
|
84
|
+
createPlaywrightBrowserContextWithTimezoneId({browser, timezoneId}),
|
|
85
|
+
}),
|
|
69
86
|
],
|
|
70
87
|
reporters: [
|
|
71
|
-
defaultReporter({reportTestResults: true, reportTestProgress: false}),
|
|
72
88
|
summaryReporter(),
|
|
89
|
+
defaultReporter({reportTestResults: true, reportTestProgress: false}),
|
|
73
90
|
],
|
|
74
91
|
browserStartTimeout: minutesTwenty,
|
|
75
92
|
concurrentBrowsers: 3,
|
package/configs/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"publish": "virmator publish \"npm run compile && npm run test:all\"",
|
|
12
12
|
"start": "npm install && virmator frontend",
|
|
13
13
|
"test": "virmator test",
|
|
14
|
-
"test:all": "npm run test:types
|
|
14
|
+
"test:all": "concurrently --kill-others-on-fail \"npm run test:types\" \"npm run test:coverage\" \"npm run test:spelling\" \"npm run test:format\" \"npm run test:docs\"",
|
|
15
15
|
"test:coverage": "npm run test coverage",
|
|
16
16
|
"test:docs": "virmator code-in-markdown check",
|
|
17
17
|
"test:format": "virmator format check",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virmator",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Handle common package configs, commands, and dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"format:base": "prettier \"./**/*.+(ts|json|html|css|md|js)\"",
|
|
37
37
|
"publish": "virmator publish \"npm run test:all\"",
|
|
38
38
|
"test": "npm run compile && test-as-package mocha --config mocha.config.js",
|
|
39
|
-
"test:all": "npm ci && npm run compile && npm run test
|
|
39
|
+
"test:all": "npm ci && concurrently --kill-others-on-fail \"npm run compile && npm run test\" \"npm run test:spelling -- --no-progress\" \"npm run test:format\" \"npm run docs:check\"",
|
|
40
40
|
"test:format": "npm run format:base -- --check",
|
|
41
41
|
"test:help": "ts-node src/cli/cli.ts --help",
|
|
42
42
|
"test:spelling": "cspell \"{*,.*,**/{.*,*}/**/{.*,*}}\" --exclude \"test-files/spellcheck/invalid-spellcheck-repo/**/*\" --exclude \"extender-configs\"",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@augment-vir/common": "^13.3.0",
|
|
47
47
|
"@augment-vir/node-js": "^13.3.0",
|
|
48
48
|
"ansi-colors": "^4.1.3",
|
|
49
|
+
"concurrently": "^8.0.1",
|
|
49
50
|
"glob": "^8.1.0",
|
|
50
51
|
"glob-promise": "^6.0.2",
|
|
51
52
|
"semver": "^7.5.0",
|
|
@@ -56,11 +57,11 @@
|
|
|
56
57
|
"@electrovir/nyc": "15.1.0-fix0",
|
|
57
58
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
58
59
|
"@open-wc/testing": "^3.1.8",
|
|
59
|
-
"@types/chai": "^4.3.
|
|
60
|
+
"@types/chai": "^4.3.5",
|
|
60
61
|
"@types/fs-extra": "^11.0.1",
|
|
61
62
|
"@types/glob": "^8.1.0",
|
|
62
63
|
"@types/mocha": "^10.0.1",
|
|
63
|
-
"@types/node": "^18.16.
|
|
64
|
+
"@types/node": "^18.16.3",
|
|
64
65
|
"@types/semver": "^7.3.13",
|
|
65
66
|
"@web/dev-server-esbuild": "^0.4.1",
|
|
66
67
|
"@web/test-runner": "^0.16.1",
|
|
@@ -89,8 +90,8 @@
|
|
|
89
90
|
"ts-node": "^10.9.1",
|
|
90
91
|
"tsconfig-paths": "^4.2.0",
|
|
91
92
|
"typescript": "^5.0.4",
|
|
92
|
-
"virmator": "^6.4.
|
|
93
|
-
"vite": "^4.3.
|
|
93
|
+
"virmator": "^6.4.4",
|
|
94
|
+
"vite": "^4.3.3",
|
|
94
95
|
"vite-tsconfig-paths": "^4.2.0"
|
|
95
96
|
},
|
|
96
97
|
"engines": {
|