@gitlab/frontend-tests 0.2.0 → 0.3.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/README.md
CHANGED
|
@@ -49,7 +49,7 @@ This package holds the framework core of GitLab's frontend integration tests. Th
|
|
|
49
49
|
|
|
50
50
|
`@gitlab/frontend-tests/integration/polyfills/text-encoding` and `@gitlab/frontend-tests/integration/polyfills` are Jest `setupFiles` entries, in that order. The first puts `TextEncoder` and `TextDecoder` on `global`. The second adds the web streams, `BroadcastChannel`, and `fetch`, `Request`, `Response` and `Headers` from `@whatwg-node/fetch`.
|
|
51
51
|
|
|
52
|
-
`@gitlab/frontend-tests/integration/jest-config` exports `createFrontendIntegrationConfig(config)` and `
|
|
52
|
+
`@gitlab/frontend-tests/integration/jest-config` exports `createFrontendIntegrationConfig(config)`, `MSW_ESM_DEPENDENCIES` and `APOLLO_ESM_DEPENDENCIES`.
|
|
53
53
|
|
|
54
54
|
`@gitlab/frontend-tests/integration/setup-budget` and `@gitlab/frontend-tests/integration/setup-budget-lint` are described in [Wait budgets](#wait-budgets).
|
|
55
55
|
|
|
@@ -69,7 +69,8 @@ module.exports = createFrontendIntegrationConfig({
|
|
|
69
69
|
|
|
70
70
|
The factory changes these things:
|
|
71
71
|
|
|
72
|
-
- Adds the ESM-only dependencies of msw (`rettime`, `until-async`, `@open-draft/*`) to the `transformIgnorePatterns` allowlist.
|
|
72
|
+
- Adds the ESM-only dependencies of msw (`MSW_ESM_DEPENDENCIES`: `rettime`, `until-async`, `@open-draft/*`) and of Apollo (`APOLLO_ESM_DEPENDENCIES`: `@apollo/client`, `@vue/apollo-composable`, `ts-invariant`) to the `transformIgnorePatterns` allowlist. It extends a pnpm allowlist (`node_modules/\.pnpm/(?!(a|b)@)`) or a flat npm/Yarn one (`node_modules/(?!(a|b)/)`). It throws when no pattern has either shape, and leaves the other entries of your allowlist as they are. With pnpm, use the pnpm shape: the factory adds pnpm paths for its own dependencies to a flat allowlist, but your entries in it never match pnpm paths.
|
|
73
|
+
- Adds a `babel-jest` transform for `.mjs` files, which the dependencies above ship. A `'^.+\.mjs$'` transform in your config wins. When your config has no `transform`, the factory also adds Jest's default `'\.[jt]sx?$': 'babel-jest'`, because Jest drops its default as soon as any `transform` key is set.
|
|
73
74
|
- Appends the two polyfills entries to `setupFiles`, text encoding first.
|
|
74
75
|
- Clears `testPathIgnorePatterns`.
|
|
75
76
|
- Disables global fake timers.
|
|
@@ -77,7 +78,7 @@ The factory changes these things:
|
|
|
77
78
|
|
|
78
79
|
It does not touch `setupFilesAfterEnv`, module aliases or the test environment. Those stay with the consumer.
|
|
79
80
|
|
|
80
|
-
`msw` v2 is a peer dependency, and `@jest/types` is an optional peer that only TypeScript consumers of `jest-config` need. `@whatwg-node/fetch` is the only regular dependency; `lodash-es` is bundled.
|
|
81
|
+
`msw` v2 is a peer dependency, and `@jest/types` is an optional peer that only TypeScript consumers of `jest-config` need. `babel-jest` is an optional peer too. The `.mjs` transform names it as a bare string, so Jest resolves it from your `rootDir`, and you need it installed there. `@whatwg-node/fetch` is the only regular dependency; `lodash-es` is bundled.
|
|
81
82
|
|
|
82
83
|
### Wait budgets
|
|
83
84
|
|
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
// `msw` dependencies that ship ESM only, so Jest has to transform them.
|
|
4
4
|
const MSW_ESM_DEPENDENCIES = ['rettime', 'until-async', '@open-draft/.*'];
|
|
5
|
+
// Integration specs run real Apollo. `@vue/apollo-composable` imports `@apollo/client`'s
|
|
6
|
+
// ESM files by path, and those import the ESM-only entry of `ts-invariant`.
|
|
7
|
+
const APOLLO_ESM_DEPENDENCIES = [
|
|
8
|
+
'@apollo/client',
|
|
9
|
+
'@vue/apollo-composable',
|
|
10
|
+
'ts-invariant',
|
|
11
|
+
];
|
|
12
|
+
const INTEGRATION_ESM_DEPENDENCIES = [...MSW_ESM_DEPENDENCIES, ...APOLLO_ESM_DEPENDENCIES];
|
|
13
|
+
// The two shapes of `transformIgnorePatterns` entry the factory knows how to extend:
|
|
14
|
+
// the pnpm layout, where packages live at `node_modules/.pnpm/<name>@<version>/`, and
|
|
15
|
+
// the flat layout of npm and Yarn (`node_modules/<name>/`, Yarn PnP paths included).
|
|
16
|
+
const PNPM_ALLOWLIST_MARKER = 'node_modules/\\.pnpm/(?!(';
|
|
17
|
+
const FLAT_ALLOWLIST_MARKER = 'node_modules/(?!(';
|
|
18
|
+
// pnpm stores `@scope/name` as `@scope+name`.
|
|
19
|
+
const toPnpmName = (name) => name.replace('/', '\\+');
|
|
20
|
+
// The pnpm store path of a dependency, for a flat allowlist whose group closes with `/`,
|
|
21
|
+
// so pnpm consumers with a flat pattern still match. `@[^/]*` swallows the version and
|
|
22
|
+
// any peer suffix (`@3.9.0_graphql@16.0.0`).
|
|
23
|
+
const toPnpmStorePath = (name) => `\\.pnpm/${toPnpmName(name)}@[^/]*`;
|
|
24
|
+
// Each allowlist shape the factory can extend, with the names it adds to it. In the pnpm
|
|
25
|
+
// shape the consumer's group already closes on the `@` before the version.
|
|
26
|
+
const ALLOWLIST_SHAPES = [
|
|
27
|
+
{ marker: PNPM_ALLOWLIST_MARKER, names: INTEGRATION_ESM_DEPENDENCIES.map(toPnpmName) },
|
|
28
|
+
{
|
|
29
|
+
marker: FLAT_ALLOWLIST_MARKER,
|
|
30
|
+
names: INTEGRATION_ESM_DEPENDENCIES.flatMap((name) => [name, toPnpmStorePath(name)]),
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
const findShape = (pattern) => ALLOWLIST_SHAPES.find(({ marker }) => pattern.includes(marker));
|
|
34
|
+
/**
|
|
35
|
+
* Adds the ESM-only dependencies to the allowlist of one `transformIgnorePatterns`
|
|
36
|
+
* entry. Returns the entry unchanged when it has neither known allowlist shape.
|
|
37
|
+
*/
|
|
38
|
+
function allowEsmDependencies(pattern) {
|
|
39
|
+
const shape = findShape(pattern);
|
|
40
|
+
if (!shape)
|
|
41
|
+
return pattern;
|
|
42
|
+
return pattern.replace(shape.marker, () => `${shape.marker}${shape.names.join('|')}|`);
|
|
43
|
+
}
|
|
44
|
+
// Jest drops its default transform as soon as `transform` has any key.
|
|
45
|
+
const DEFAULT_SCRIPT_TRANSFORM_KEY = '\\.[jt]sx?$';
|
|
46
|
+
const MJS_TRANSFORM_KEY = '^.+\\.mjs$';
|
|
5
47
|
const integrationTestTimeout = () => (process.env.CI ? 20000 : 7000);
|
|
6
48
|
// Order matters: `@whatwg-node/fetch` needs TextEncoder/TextDecoder at load time.
|
|
7
49
|
const POLYFILLS_SETUP_FILES = [
|
|
@@ -10,16 +52,38 @@ const POLYFILLS_SETUP_FILES = [
|
|
|
10
52
|
];
|
|
11
53
|
/**
|
|
12
54
|
* Turns a consumer's Jest config into one that can run MSW integration specs. It
|
|
13
|
-
* lets Jest transform the ESM-only MSW dependencies
|
|
55
|
+
* lets Jest transform the ESM-only MSW and Apollo dependencies (in pnpm and flat
|
|
56
|
+
* npm/Yarn layouts), transforms `.mjs` files with `babel-jest`, loads the polyfills MSW needs
|
|
14
57
|
* before anything else, keeps real timers and gives the specs a longer timeout.
|
|
15
58
|
* Module aliases, the test environment and `setupFilesAfterEnv` stay the
|
|
16
59
|
* consumer's responsibility.
|
|
60
|
+
*
|
|
61
|
+
* The consumer's `transformIgnorePatterns` must contain an allowlist of the shape
|
|
62
|
+
* `node_modules/\\.pnpm/(?!(a|b)@)` or `node_modules/(?!(a|b)/)`, otherwise this
|
|
63
|
+
* throws: a pattern without one can't be extended, and the specs would fail later
|
|
64
|
+
* on untransformed ESM. A `transform` entry for `.mjs` files wins over the default.
|
|
65
|
+
* `babel-jest` is resolved from the consumer's `rootDir`, so the consumer needs it.
|
|
17
66
|
*/
|
|
18
67
|
function createFrontendIntegrationConfig(config = {}) {
|
|
19
|
-
const { transformIgnorePatterns = [], setupFiles = [] } = config;
|
|
68
|
+
const { transformIgnorePatterns = [], setupFiles = [], transform } = config;
|
|
69
|
+
if (transformIgnorePatterns.length > 0 && !transformIgnorePatterns.some(findShape)) {
|
|
70
|
+
throw new Error([
|
|
71
|
+
'createFrontendIntegrationConfig: no transformIgnorePatterns entry has an allowlist,',
|
|
72
|
+
'so the ESM-only msw and Apollo dependencies would not be transformed.',
|
|
73
|
+
'Add one of these to transformIgnorePatterns, with your own ESM-only packages in the group:',
|
|
74
|
+
` pnpm: '${PNPM_ALLOWLIST_MARKER}your-package)@)'`,
|
|
75
|
+
` npm/Yarn: '${FLAT_ALLOWLIST_MARKER}your-package)/)'`,
|
|
76
|
+
`Got: ${JSON.stringify(transformIgnorePatterns)}`,
|
|
77
|
+
].join('\n'));
|
|
78
|
+
}
|
|
20
79
|
return {
|
|
21
80
|
...config,
|
|
22
|
-
transformIgnorePatterns: transformIgnorePatterns.map(
|
|
81
|
+
transformIgnorePatterns: transformIgnorePatterns.map(allowEsmDependencies),
|
|
82
|
+
transform: {
|
|
83
|
+
...(transform === undefined && { [DEFAULT_SCRIPT_TRANSFORM_KEY]: 'babel-jest' }),
|
|
84
|
+
...transform,
|
|
85
|
+
[MJS_TRANSFORM_KEY]: transform?.[MJS_TRANSFORM_KEY] ?? 'babel-jest',
|
|
86
|
+
},
|
|
23
87
|
testPathIgnorePatterns: [],
|
|
24
88
|
setupFiles: [...setupFiles, ...POLYFILLS_SETUP_FILES],
|
|
25
89
|
fakeTimers: { enableGlobally: false },
|
|
@@ -27,6 +91,7 @@ function createFrontendIntegrationConfig(config = {}) {
|
|
|
27
91
|
};
|
|
28
92
|
}
|
|
29
93
|
|
|
94
|
+
exports.APOLLO_ESM_DEPENDENCIES = APOLLO_ESM_DEPENDENCIES;
|
|
30
95
|
exports.MSW_ESM_DEPENDENCIES = MSW_ESM_DEPENDENCIES;
|
|
31
96
|
exports.POLYFILLS_SETUP_FILES = POLYFILLS_SETUP_FILES;
|
|
32
97
|
exports.createFrontendIntegrationConfig = createFrontendIntegrationConfig;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import type { Config } from '@jest/types';
|
|
2
2
|
export declare const MSW_ESM_DEPENDENCIES: string[];
|
|
3
|
+
export declare const APOLLO_ESM_DEPENDENCIES: string[];
|
|
3
4
|
export declare const integrationTestTimeout: () => 20000 | 7000;
|
|
4
5
|
export declare const POLYFILLS_SETUP_FILES: string[];
|
|
6
|
+
type IntegrationConfig = Config.InitialOptions & Required<Pick<Config.InitialOptions, 'transformIgnorePatterns' | 'transform' | 'setupFiles'>>;
|
|
5
7
|
/**
|
|
6
8
|
* Turns a consumer's Jest config into one that can run MSW integration specs. It
|
|
7
|
-
* lets Jest transform the ESM-only MSW dependencies
|
|
9
|
+
* lets Jest transform the ESM-only MSW and Apollo dependencies (in pnpm and flat
|
|
10
|
+
* npm/Yarn layouts), transforms `.mjs` files with `babel-jest`, loads the polyfills MSW needs
|
|
8
11
|
* before anything else, keeps real timers and gives the specs a longer timeout.
|
|
9
12
|
* Module aliases, the test environment and `setupFilesAfterEnv` stay the
|
|
10
13
|
* consumer's responsibility.
|
|
14
|
+
*
|
|
15
|
+
* The consumer's `transformIgnorePatterns` must contain an allowlist of the shape
|
|
16
|
+
* `node_modules/\\.pnpm/(?!(a|b)@)` or `node_modules/(?!(a|b)/)`, otherwise this
|
|
17
|
+
* throws: a pattern without one can't be extended, and the specs would fail later
|
|
18
|
+
* on untransformed ESM. A `transform` entry for `.mjs` files wins over the default.
|
|
19
|
+
* `babel-jest` is resolved from the consumer's `rootDir`, so the consumer needs it.
|
|
11
20
|
*/
|
|
12
|
-
export declare function createFrontendIntegrationConfig(config?: Config.InitialOptions):
|
|
21
|
+
export declare function createFrontendIntegrationConfig(config?: Config.InitialOptions): IntegrationConfig;
|
|
22
|
+
export {};
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import type { Config } from '@jest/types';
|
|
2
2
|
export declare const MSW_ESM_DEPENDENCIES: string[];
|
|
3
|
+
export declare const APOLLO_ESM_DEPENDENCIES: string[];
|
|
3
4
|
export declare const integrationTestTimeout: () => 20000 | 7000;
|
|
4
5
|
export declare const POLYFILLS_SETUP_FILES: string[];
|
|
6
|
+
type IntegrationConfig = Config.InitialOptions & Required<Pick<Config.InitialOptions, 'transformIgnorePatterns' | 'transform' | 'setupFiles'>>;
|
|
5
7
|
/**
|
|
6
8
|
* Turns a consumer's Jest config into one that can run MSW integration specs. It
|
|
7
|
-
* lets Jest transform the ESM-only MSW dependencies
|
|
9
|
+
* lets Jest transform the ESM-only MSW and Apollo dependencies (in pnpm and flat
|
|
10
|
+
* npm/Yarn layouts), transforms `.mjs` files with `babel-jest`, loads the polyfills MSW needs
|
|
8
11
|
* before anything else, keeps real timers and gives the specs a longer timeout.
|
|
9
12
|
* Module aliases, the test environment and `setupFilesAfterEnv` stay the
|
|
10
13
|
* consumer's responsibility.
|
|
14
|
+
*
|
|
15
|
+
* The consumer's `transformIgnorePatterns` must contain an allowlist of the shape
|
|
16
|
+
* `node_modules/\\.pnpm/(?!(a|b)@)` or `node_modules/(?!(a|b)/)`, otherwise this
|
|
17
|
+
* throws: a pattern without one can't be extended, and the specs would fail later
|
|
18
|
+
* on untransformed ESM. A `transform` entry for `.mjs` files wins over the default.
|
|
19
|
+
* `babel-jest` is resolved from the consumer's `rootDir`, so the consumer needs it.
|
|
11
20
|
*/
|
|
12
|
-
export declare function createFrontendIntegrationConfig(config?: Config.InitialOptions):
|
|
21
|
+
export declare function createFrontendIntegrationConfig(config?: Config.InitialOptions): IntegrationConfig;
|
|
22
|
+
export {};
|
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
// `msw` dependencies that ship ESM only, so Jest has to transform them.
|
|
2
2
|
const MSW_ESM_DEPENDENCIES = ['rettime', 'until-async', '@open-draft/.*'];
|
|
3
|
+
// Integration specs run real Apollo. `@vue/apollo-composable` imports `@apollo/client`'s
|
|
4
|
+
// ESM files by path, and those import the ESM-only entry of `ts-invariant`.
|
|
5
|
+
const APOLLO_ESM_DEPENDENCIES = [
|
|
6
|
+
'@apollo/client',
|
|
7
|
+
'@vue/apollo-composable',
|
|
8
|
+
'ts-invariant',
|
|
9
|
+
];
|
|
10
|
+
const INTEGRATION_ESM_DEPENDENCIES = [...MSW_ESM_DEPENDENCIES, ...APOLLO_ESM_DEPENDENCIES];
|
|
11
|
+
// The two shapes of `transformIgnorePatterns` entry the factory knows how to extend:
|
|
12
|
+
// the pnpm layout, where packages live at `node_modules/.pnpm/<name>@<version>/`, and
|
|
13
|
+
// the flat layout of npm and Yarn (`node_modules/<name>/`, Yarn PnP paths included).
|
|
14
|
+
const PNPM_ALLOWLIST_MARKER = 'node_modules/\\.pnpm/(?!(';
|
|
15
|
+
const FLAT_ALLOWLIST_MARKER = 'node_modules/(?!(';
|
|
16
|
+
// pnpm stores `@scope/name` as `@scope+name`.
|
|
17
|
+
const toPnpmName = (name) => name.replace('/', '\\+');
|
|
18
|
+
// The pnpm store path of a dependency, for a flat allowlist whose group closes with `/`,
|
|
19
|
+
// so pnpm consumers with a flat pattern still match. `@[^/]*` swallows the version and
|
|
20
|
+
// any peer suffix (`@3.9.0_graphql@16.0.0`).
|
|
21
|
+
const toPnpmStorePath = (name) => `\\.pnpm/${toPnpmName(name)}@[^/]*`;
|
|
22
|
+
// Each allowlist shape the factory can extend, with the names it adds to it. In the pnpm
|
|
23
|
+
// shape the consumer's group already closes on the `@` before the version.
|
|
24
|
+
const ALLOWLIST_SHAPES = [
|
|
25
|
+
{ marker: PNPM_ALLOWLIST_MARKER, names: INTEGRATION_ESM_DEPENDENCIES.map(toPnpmName) },
|
|
26
|
+
{
|
|
27
|
+
marker: FLAT_ALLOWLIST_MARKER,
|
|
28
|
+
names: INTEGRATION_ESM_DEPENDENCIES.flatMap((name) => [name, toPnpmStorePath(name)]),
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
const findShape = (pattern) => ALLOWLIST_SHAPES.find(({ marker }) => pattern.includes(marker));
|
|
32
|
+
/**
|
|
33
|
+
* Adds the ESM-only dependencies to the allowlist of one `transformIgnorePatterns`
|
|
34
|
+
* entry. Returns the entry unchanged when it has neither known allowlist shape.
|
|
35
|
+
*/
|
|
36
|
+
function allowEsmDependencies(pattern) {
|
|
37
|
+
const shape = findShape(pattern);
|
|
38
|
+
if (!shape)
|
|
39
|
+
return pattern;
|
|
40
|
+
return pattern.replace(shape.marker, () => `${shape.marker}${shape.names.join('|')}|`);
|
|
41
|
+
}
|
|
42
|
+
// Jest drops its default transform as soon as `transform` has any key.
|
|
43
|
+
const DEFAULT_SCRIPT_TRANSFORM_KEY = '\\.[jt]sx?$';
|
|
44
|
+
const MJS_TRANSFORM_KEY = '^.+\\.mjs$';
|
|
3
45
|
const integrationTestTimeout = () => (process.env.CI ? 20000 : 7000);
|
|
4
46
|
// Order matters: `@whatwg-node/fetch` needs TextEncoder/TextDecoder at load time.
|
|
5
47
|
const POLYFILLS_SETUP_FILES = [
|
|
@@ -8,16 +50,38 @@ const POLYFILLS_SETUP_FILES = [
|
|
|
8
50
|
];
|
|
9
51
|
/**
|
|
10
52
|
* Turns a consumer's Jest config into one that can run MSW integration specs. It
|
|
11
|
-
* lets Jest transform the ESM-only MSW dependencies
|
|
53
|
+
* lets Jest transform the ESM-only MSW and Apollo dependencies (in pnpm and flat
|
|
54
|
+
* npm/Yarn layouts), transforms `.mjs` files with `babel-jest`, loads the polyfills MSW needs
|
|
12
55
|
* before anything else, keeps real timers and gives the specs a longer timeout.
|
|
13
56
|
* Module aliases, the test environment and `setupFilesAfterEnv` stay the
|
|
14
57
|
* consumer's responsibility.
|
|
58
|
+
*
|
|
59
|
+
* The consumer's `transformIgnorePatterns` must contain an allowlist of the shape
|
|
60
|
+
* `node_modules/\\.pnpm/(?!(a|b)@)` or `node_modules/(?!(a|b)/)`, otherwise this
|
|
61
|
+
* throws: a pattern without one can't be extended, and the specs would fail later
|
|
62
|
+
* on untransformed ESM. A `transform` entry for `.mjs` files wins over the default.
|
|
63
|
+
* `babel-jest` is resolved from the consumer's `rootDir`, so the consumer needs it.
|
|
15
64
|
*/
|
|
16
65
|
function createFrontendIntegrationConfig(config = {}) {
|
|
17
|
-
const { transformIgnorePatterns = [], setupFiles = [] } = config;
|
|
66
|
+
const { transformIgnorePatterns = [], setupFiles = [], transform } = config;
|
|
67
|
+
if (transformIgnorePatterns.length > 0 && !transformIgnorePatterns.some(findShape)) {
|
|
68
|
+
throw new Error([
|
|
69
|
+
'createFrontendIntegrationConfig: no transformIgnorePatterns entry has an allowlist,',
|
|
70
|
+
'so the ESM-only msw and Apollo dependencies would not be transformed.',
|
|
71
|
+
'Add one of these to transformIgnorePatterns, with your own ESM-only packages in the group:',
|
|
72
|
+
` pnpm: '${PNPM_ALLOWLIST_MARKER}your-package)@)'`,
|
|
73
|
+
` npm/Yarn: '${FLAT_ALLOWLIST_MARKER}your-package)/)'`,
|
|
74
|
+
`Got: ${JSON.stringify(transformIgnorePatterns)}`,
|
|
75
|
+
].join('\n'));
|
|
76
|
+
}
|
|
18
77
|
return {
|
|
19
78
|
...config,
|
|
20
|
-
transformIgnorePatterns: transformIgnorePatterns.map(
|
|
79
|
+
transformIgnorePatterns: transformIgnorePatterns.map(allowEsmDependencies),
|
|
80
|
+
transform: {
|
|
81
|
+
...(transform === undefined && { [DEFAULT_SCRIPT_TRANSFORM_KEY]: 'babel-jest' }),
|
|
82
|
+
...transform,
|
|
83
|
+
[MJS_TRANSFORM_KEY]: transform?.[MJS_TRANSFORM_KEY] ?? 'babel-jest',
|
|
84
|
+
},
|
|
21
85
|
testPathIgnorePatterns: [],
|
|
22
86
|
setupFiles: [...setupFiles, ...POLYFILLS_SETUP_FILES],
|
|
23
87
|
fakeTimers: { enableGlobally: false },
|
|
@@ -25,4 +89,4 @@ function createFrontendIntegrationConfig(config = {}) {
|
|
|
25
89
|
};
|
|
26
90
|
}
|
|
27
91
|
|
|
28
|
-
export { MSW_ESM_DEPENDENCIES, POLYFILLS_SETUP_FILES, createFrontendIntegrationConfig, integrationTestTimeout };
|
|
92
|
+
export { APOLLO_ESM_DEPENDENCIES, MSW_ESM_DEPENDENCIES, POLYFILLS_SETUP_FILES, createFrontendIntegrationConfig, integrationTestTimeout };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/frontend-tests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Reusable test infrastructure for GitLab frontend packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -122,12 +122,16 @@
|
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"@jest/types": ">=29",
|
|
124
124
|
"@testing-library/dom": ">=9",
|
|
125
|
+
"babel-jest": ">=29",
|
|
125
126
|
"msw": "^2.0.0"
|
|
126
127
|
},
|
|
127
128
|
"peerDependenciesMeta": {
|
|
128
129
|
"@jest/types": {
|
|
129
130
|
"optional": true
|
|
130
131
|
},
|
|
132
|
+
"babel-jest": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
131
135
|
"@testing-library/dom": {
|
|
132
136
|
"optional": true
|
|
133
137
|
}
|