@brightspace-ui/testing 1.8.3 → 1.10.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/package.json +7 -8
- package/src/server/wtr-config.js +8 -2
package/package.json
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
"name": "@brightspace-ui/testing",
|
|
3
3
|
"description": "Utilities for testing front-end components and applications",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.10.0",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/testing.git",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lint": "eslint . --ext .js",
|
|
9
|
-
"start": "npx d2l-test-vdiff-report",
|
|
10
9
|
"test": "npm run lint && npm run test:bin && npm run test:server && npm run test:browser",
|
|
11
10
|
"test:bin": "mocha './test/bin/**/*.test.js'",
|
|
12
11
|
"test:browser": "npm run test:browser:other && npm run test:browser:ctor",
|
|
13
|
-
"test:browser:other": "npx d2l-test-runner --files
|
|
12
|
+
"test:browser:other": "npx d2l-test-runner --files \"./test/browser/**/*.test.js\"",
|
|
14
13
|
"test:browser:ctor": "npx d2l-test-runner --config ./test/browser/ctor.config.js",
|
|
15
14
|
"test:server": "mocha './test/server/**/*.test.js'",
|
|
16
15
|
"test:vdiff": "npx d2l-test-runner vdiff --config ./test/browser/vdiff.config.js"
|
|
@@ -41,12 +40,12 @@
|
|
|
41
40
|
"@brightspace-ui/intl": "^3",
|
|
42
41
|
"@open-wc/testing": "^3",
|
|
43
42
|
"@rollup/plugin-node-resolve": "^15",
|
|
44
|
-
"@web/config-loader": "^0.
|
|
45
|
-
"@web/dev-server": "^0.
|
|
43
|
+
"@web/config-loader": "^0.3",
|
|
44
|
+
"@web/dev-server": "^0.4",
|
|
46
45
|
"@web/rollup-plugin-html": "^2",
|
|
47
|
-
"@web/test-runner": "^0.
|
|
48
|
-
"@web/test-runner-commands": "^0.
|
|
49
|
-
"@web/test-runner-playwright": "^0.
|
|
46
|
+
"@web/test-runner": "^0.18",
|
|
47
|
+
"@web/test-runner-commands": "^0.9",
|
|
48
|
+
"@web/test-runner-playwright": "^0.11",
|
|
50
49
|
"command-line-args": "^5",
|
|
51
50
|
"command-line-usage": "^7",
|
|
52
51
|
"glob": "^10",
|
package/src/server/wtr-config.js
CHANGED
|
@@ -42,7 +42,9 @@ export class WTRConfig {
|
|
|
42
42
|
return {
|
|
43
43
|
browserStartTimeout: 60 * 1000,
|
|
44
44
|
groups: [],
|
|
45
|
-
nodeResolve:
|
|
45
|
+
nodeResolve: {
|
|
46
|
+
exportConditions: ['default']
|
|
47
|
+
},
|
|
46
48
|
testRunnerHtml: testFramework =>
|
|
47
49
|
`<!DOCTYPE html>
|
|
48
50
|
<html lang="en" data-timezone='${TIMEZONE}'>
|
|
@@ -157,7 +159,11 @@ export class WTRConfig {
|
|
|
157
159
|
|
|
158
160
|
const config = {};
|
|
159
161
|
|
|
160
|
-
if (timeout)
|
|
162
|
+
if (timeout) {
|
|
163
|
+
config.timeout = String(timeout);
|
|
164
|
+
} else if (group === 'vdiff') {
|
|
165
|
+
config.timeout = '5000';
|
|
166
|
+
}
|
|
161
167
|
if (open || watch) config.timeout = '0';
|
|
162
168
|
if (grep) config.grep = grep;
|
|
163
169
|
if (slow) {
|