@justeattakeaway/pie-components-config 0.10.0 → 0.12.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 +1 -1
- package/playwright-lit-config.js +4 -2
- package/playwright-lit-visual-config.js +1 -0
- package/tsconfig.json +1 -0
- package/vite.config.js +10 -1
package/package.json
CHANGED
package/playwright-lit-config.js
CHANGED
|
@@ -10,6 +10,7 @@ export function getPlaywrightConfig () {
|
|
|
10
10
|
snapshotDir: './__snapshots__',
|
|
11
11
|
/* Maximum time one test can run for. */
|
|
12
12
|
timeout: 10 * 1000,
|
|
13
|
+
testIgnore: '*-react.spec.js',
|
|
13
14
|
/* Run tests in files in parallel */
|
|
14
15
|
fullyParallel: true,
|
|
15
16
|
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
|
@@ -31,6 +32,7 @@ export function getPlaywrightConfig () {
|
|
|
31
32
|
},
|
|
32
33
|
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
33
34
|
trace: 'on',
|
|
35
|
+
testIdAttribute: 'data-test-id',
|
|
34
36
|
},
|
|
35
37
|
|
|
36
38
|
/* Configure projects for major browsers */
|
|
@@ -40,14 +42,14 @@ export function getPlaywrightConfig () {
|
|
|
40
42
|
use: {
|
|
41
43
|
...devices['Desktop Chrome'],
|
|
42
44
|
},
|
|
43
|
-
testMatch: ['**/test/component/*.spec.ts'],
|
|
45
|
+
testMatch: ['**/test/component/*.spec.{js,ts}'],
|
|
44
46
|
},
|
|
45
47
|
{
|
|
46
48
|
name: 'a11y:chrome',
|
|
47
49
|
use: {
|
|
48
50
|
...devices['Desktop Chrome'],
|
|
49
51
|
},
|
|
50
|
-
testMatch: ['**/test/accessibility/*.spec.ts'],
|
|
52
|
+
testMatch: ['**/test/accessibility/*.spec.{js,ts}'],
|
|
51
53
|
},
|
|
52
54
|
],
|
|
53
55
|
};
|
package/tsconfig.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -34,7 +34,16 @@ const sharedConfig = ({ build = {}, plugins = [], ...rest }) => defineConfig({
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
}, build),
|
|
37
|
-
|
|
37
|
+
test: {
|
|
38
|
+
dir: '.',
|
|
39
|
+
environment: 'jsdom',
|
|
40
|
+
globals: true,
|
|
41
|
+
include: [
|
|
42
|
+
'./src/__tests__/**/*.{spec,test}.{js,ts}',
|
|
43
|
+
'./test/unit/**/*.{spec,test}.{js,ts}',
|
|
44
|
+
],
|
|
45
|
+
exclude: ['**/node_modules/**'],
|
|
46
|
+
},
|
|
38
47
|
plugins: deepmerge([dts({
|
|
39
48
|
insertTypesEntry: true,
|
|
40
49
|
outputDir: 'dist',
|