@stencil/core 4.19.2 → 4.20.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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/lib.dom.asynciterable.d.ts +5 -0
- package/compiler/lib.dom.d.ts +211 -33
- package/compiler/lib.dom.iterable.d.ts +8 -0
- package/compiler/lib.es2015.core.d.ts +40 -0
- package/compiler/lib.es2018.intl.d.ts +16 -4
- package/compiler/lib.es2019.intl.d.ts +1 -1
- package/compiler/lib.es2020.bigint.d.ts +2 -3
- package/compiler/lib.es2020.intl.d.ts +32 -7
- package/compiler/lib.es2021.weakref.d.ts +1 -1
- package/compiler/lib.es2022.regexp.d.ts +1 -1
- package/compiler/lib.es2023.d.ts +1 -0
- package/compiler/lib.es2023.intl.d.ts +56 -0
- package/compiler/lib.es5.d.ts +31 -9
- package/compiler/lib.esnext.array.d.ts +35 -0
- package/compiler/lib.esnext.collection.d.ts +77 -0
- package/compiler/lib.esnext.d.ts +3 -0
- package/compiler/lib.esnext.intl.d.ts +1 -8
- package/compiler/lib.esnext.regexp.d.ts +25 -0
- package/compiler/lib.esnext.string.d.ts +29 -0
- package/compiler/lib.webworker.asynciterable.d.ts +5 -0
- package/compiler/lib.webworker.d.ts +20 -6
- package/compiler/lib.webworker.iterable.d.ts +5 -0
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +212817 -210315
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +49 -31
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/shadow-css.js +6 -30
- package/internal/hydrate/index.js +52 -36
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +7 -7
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +0 -1
- package/internal/stencil-public-compiler.d.ts +8 -5
- package/internal/testing/index.js +48 -30
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +3 -3
- package/mock-doc/index.d.ts +1 -1
- package/mock-doc/index.js +3 -3
- package/mock-doc/package.json +1 -1
- package/package.json +10 -3
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/screenshot/screenshot-compare.d.ts +1 -2
- package/screenshot/screenshot-fs.d.ts +0 -1
- package/sys/node/index.js +6 -6
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +31 -2
- package/testing/jest/jest-27-and-under/jest-facade.d.ts +41 -41
- package/testing/jest/jest-28/jest-facade.d.ts +35 -53
- package/testing/jest/jest-29/jest-facade.d.ts +36 -55
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +0 -1
- package/testing/puppeteer/puppeteer-screenshot.d.ts +1 -1
- package/testing/testing-utils.d.ts +0 -1
|
@@ -39,20 +39,20 @@ export declare class Jest27Stencil implements JestFacade {
|
|
|
39
39
|
getJestSetupTestFramework(): typeof jestSetupTestFramework;
|
|
40
40
|
getJestPreset(): Partial<{
|
|
41
41
|
automock: boolean;
|
|
42
|
-
bail:
|
|
42
|
+
bail: boolean | number;
|
|
43
43
|
cache: boolean;
|
|
44
|
-
cacheDirectory:
|
|
44
|
+
cacheDirectory: import("@jest/types/build/Config").Path;
|
|
45
45
|
ci: boolean;
|
|
46
46
|
clearMocks: boolean;
|
|
47
47
|
changedFilesWithAncestor: boolean;
|
|
48
48
|
changedSince: string;
|
|
49
49
|
collectCoverage: boolean;
|
|
50
|
-
collectCoverageFrom:
|
|
50
|
+
collectCoverageFrom: Array<import("@jest/types/build/Config").Glob>;
|
|
51
51
|
collectCoverageOnlyFrom: {
|
|
52
52
|
[key: string]: boolean;
|
|
53
53
|
};
|
|
54
54
|
coverageDirectory: string;
|
|
55
|
-
coveragePathIgnorePatterns: string
|
|
55
|
+
coveragePathIgnorePatterns: Array<string>;
|
|
56
56
|
coverageProvider: "babel" | "v8";
|
|
57
57
|
coverageReporters: import("@jest/types/build/Config").CoverageReporters;
|
|
58
58
|
coverageThreshold: {
|
|
@@ -64,74 +64,74 @@ export declare class Jest27Stencil implements JestFacade {
|
|
|
64
64
|
detectOpenHandles: boolean;
|
|
65
65
|
displayName: string | import("@jest/types/build/Config").DisplayName;
|
|
66
66
|
expand: boolean;
|
|
67
|
-
extensionsToTreatAsEsm:
|
|
68
|
-
extraGlobals: string
|
|
69
|
-
filter:
|
|
67
|
+
extensionsToTreatAsEsm: Array<import("@jest/types/build/Config").Path>;
|
|
68
|
+
extraGlobals: Array<string>;
|
|
69
|
+
filter: import("@jest/types/build/Config").Path;
|
|
70
70
|
findRelatedTests: boolean;
|
|
71
|
-
forceCoverageMatch:
|
|
71
|
+
forceCoverageMatch: Array<import("@jest/types/build/Config").Glob>;
|
|
72
72
|
forceExit: boolean;
|
|
73
73
|
json: boolean;
|
|
74
74
|
globals: import("@jest/types/build/Config").ConfigGlobals;
|
|
75
|
-
globalSetup: string;
|
|
76
|
-
globalTeardown: string;
|
|
75
|
+
globalSetup: string | null | undefined;
|
|
76
|
+
globalTeardown: string | null | undefined;
|
|
77
77
|
haste: import("@jest/types/build/Config").HasteConfig;
|
|
78
78
|
injectGlobals: boolean;
|
|
79
|
-
reporters:
|
|
79
|
+
reporters: Array<string | import("@jest/types/build/Config").ReporterConfig>;
|
|
80
80
|
logHeapUsage: boolean;
|
|
81
81
|
lastCommit: boolean;
|
|
82
82
|
listTests: boolean;
|
|
83
83
|
maxConcurrency: number;
|
|
84
|
-
maxWorkers:
|
|
85
|
-
moduleDirectories: string
|
|
86
|
-
moduleFileExtensions: string
|
|
87
|
-
moduleLoader:
|
|
84
|
+
maxWorkers: number | string;
|
|
85
|
+
moduleDirectories: Array<string>;
|
|
86
|
+
moduleFileExtensions: Array<string>;
|
|
87
|
+
moduleLoader: import("@jest/types/build/Config").Path;
|
|
88
88
|
moduleNameMapper: {
|
|
89
|
-
[key: string]: string | string
|
|
89
|
+
[key: string]: string | Array<string>;
|
|
90
90
|
};
|
|
91
|
-
modulePathIgnorePatterns: string
|
|
92
|
-
modulePaths: string
|
|
91
|
+
modulePathIgnorePatterns: Array<string>;
|
|
92
|
+
modulePaths: Array<string>;
|
|
93
93
|
name: string;
|
|
94
94
|
noStackTrace: boolean;
|
|
95
95
|
notify: boolean;
|
|
96
96
|
notifyMode: string;
|
|
97
97
|
onlyChanged: boolean;
|
|
98
98
|
onlyFailures: boolean;
|
|
99
|
-
outputFile:
|
|
99
|
+
outputFile: import("@jest/types/build/Config").Path;
|
|
100
100
|
passWithNoTests: boolean;
|
|
101
|
-
preprocessorIgnorePatterns:
|
|
102
|
-
preset: string;
|
|
103
|
-
prettierPath: string;
|
|
104
|
-
projects: (
|
|
105
|
-
replname: string;
|
|
101
|
+
preprocessorIgnorePatterns: Array<import("@jest/types/build/Config").Glob>;
|
|
102
|
+
preset: string | null | undefined;
|
|
103
|
+
prettierPath: string | null | undefined;
|
|
104
|
+
projects: Array<import("@jest/types/build/Config").Glob | import("@jest/types/build/Config").InitialProjectOptions>;
|
|
105
|
+
replname: string | null | undefined;
|
|
106
106
|
resetMocks: boolean;
|
|
107
107
|
resetModules: boolean;
|
|
108
|
-
resolver:
|
|
108
|
+
resolver: import("@jest/types/build/Config").Path | null | undefined;
|
|
109
109
|
restoreMocks: boolean;
|
|
110
|
-
rootDir:
|
|
111
|
-
roots:
|
|
110
|
+
rootDir: import("@jest/types/build/Config").Path;
|
|
111
|
+
roots: Array<import("@jest/types/build/Config").Path>;
|
|
112
112
|
runner: string;
|
|
113
113
|
runTestsByPath: boolean;
|
|
114
114
|
scriptPreprocessor: string;
|
|
115
|
-
setupFiles:
|
|
116
|
-
setupTestFrameworkScriptFile:
|
|
117
|
-
setupFilesAfterEnv:
|
|
115
|
+
setupFiles: Array<import("@jest/types/build/Config").Path>;
|
|
116
|
+
setupTestFrameworkScriptFile: import("@jest/types/build/Config").Path;
|
|
117
|
+
setupFilesAfterEnv: Array<import("@jest/types/build/Config").Path>;
|
|
118
118
|
silent: boolean;
|
|
119
119
|
skipFilter: boolean;
|
|
120
120
|
skipNodeResolution: boolean;
|
|
121
121
|
slowTestThreshold: number;
|
|
122
|
-
snapshotResolver:
|
|
123
|
-
snapshotSerializers:
|
|
122
|
+
snapshotResolver: import("@jest/types/build/Config").Path;
|
|
123
|
+
snapshotSerializers: Array<import("@jest/types/build/Config").Path>;
|
|
124
124
|
snapshotFormat: import("@jest/types/build/Config").PrettyFormatOptions;
|
|
125
125
|
errorOnDeprecated: boolean;
|
|
126
126
|
testEnvironment: string;
|
|
127
127
|
testEnvironmentOptions: Record<string, unknown>;
|
|
128
128
|
testFailureExitCode: string | number;
|
|
129
129
|
testLocationInResults: boolean;
|
|
130
|
-
testMatch:
|
|
130
|
+
testMatch: Array<import("@jest/types/build/Config").Glob>;
|
|
131
131
|
testNamePattern: string;
|
|
132
|
-
testPathDirs:
|
|
133
|
-
testPathIgnorePatterns: string
|
|
134
|
-
testRegex: string | string
|
|
132
|
+
testPathDirs: Array<import("@jest/types/build/Config").Path>;
|
|
133
|
+
testPathIgnorePatterns: Array<string>;
|
|
134
|
+
testRegex: string | Array<string>;
|
|
135
135
|
testResultsProcessor: string;
|
|
136
136
|
testRunner: string;
|
|
137
137
|
testSequencer: string;
|
|
@@ -139,17 +139,17 @@ export declare class Jest27Stencil implements JestFacade {
|
|
|
139
139
|
testTimeout: number;
|
|
140
140
|
timers: "real" | "fake" | "modern" | "legacy";
|
|
141
141
|
transform: {
|
|
142
|
-
[regex: string]:
|
|
142
|
+
[regex: string]: import("@jest/types/build/Config").Path | import("@jest/types/build/Config").TransformerConfig;
|
|
143
143
|
};
|
|
144
|
-
transformIgnorePatterns:
|
|
145
|
-
watchPathIgnorePatterns: string
|
|
146
|
-
unmockedModulePathPatterns: string
|
|
144
|
+
transformIgnorePatterns: Array<import("@jest/types/build/Config").Glob>;
|
|
145
|
+
watchPathIgnorePatterns: Array<string>;
|
|
146
|
+
unmockedModulePathPatterns: Array<string>;
|
|
147
147
|
updateSnapshot: boolean;
|
|
148
148
|
useStderr: boolean;
|
|
149
149
|
verbose?: boolean;
|
|
150
150
|
watch: boolean;
|
|
151
151
|
watchAll: boolean;
|
|
152
152
|
watchman: boolean;
|
|
153
|
-
watchPlugins:
|
|
153
|
+
watchPlugins: Array<string | [string, Record<string, unknown>]>;
|
|
154
154
|
}>;
|
|
155
155
|
}
|
|
@@ -14,14 +14,14 @@ export declare class Jest28Stencil implements JestFacade {
|
|
|
14
14
|
getDefaultJestRunner(): string;
|
|
15
15
|
getCreateJestPuppeteerEnvironment(): typeof createJestPuppeteerEnvironment;
|
|
16
16
|
getJestPreprocessor(): {
|
|
17
|
-
process(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions
|
|
18
|
-
getCacheKey(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions
|
|
17
|
+
process(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions): import("@jest/transform").TransformedSource;
|
|
18
|
+
getCacheKey(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions): string;
|
|
19
19
|
};
|
|
20
20
|
getCreateJestTestRunner(): typeof createTestRunner;
|
|
21
21
|
getJestSetupTestFramework(): typeof jestSetupTestFramework;
|
|
22
22
|
getJestPreset(): Partial<{
|
|
23
23
|
automock: boolean;
|
|
24
|
-
bail:
|
|
24
|
+
bail: boolean | number;
|
|
25
25
|
cache: boolean;
|
|
26
26
|
cacheDirectory: string;
|
|
27
27
|
ci: boolean;
|
|
@@ -29,12 +29,12 @@ export declare class Jest28Stencil implements JestFacade {
|
|
|
29
29
|
changedFilesWithAncestor: boolean;
|
|
30
30
|
changedSince: string;
|
|
31
31
|
collectCoverage: boolean;
|
|
32
|
-
collectCoverageFrom: string
|
|
32
|
+
collectCoverageFrom: Array<string>;
|
|
33
33
|
collectCoverageOnlyFrom: {
|
|
34
34
|
[key: string]: boolean;
|
|
35
35
|
};
|
|
36
36
|
coverageDirectory: string;
|
|
37
|
-
coveragePathIgnorePatterns: string
|
|
37
|
+
coveragePathIgnorePatterns: Array<string>;
|
|
38
38
|
coverageProvider: "babel" | "v8";
|
|
39
39
|
coverageReporters: Config.CoverageReporters;
|
|
40
40
|
coverageThreshold: {
|
|
@@ -46,34 +46,34 @@ export declare class Jest28Stencil implements JestFacade {
|
|
|
46
46
|
detectOpenHandles: boolean;
|
|
47
47
|
displayName: string | Config.DisplayName;
|
|
48
48
|
expand: boolean;
|
|
49
|
-
extensionsToTreatAsEsm: string
|
|
49
|
+
extensionsToTreatAsEsm: Array<string>;
|
|
50
50
|
fakeTimers: Config.GlobalFakeTimersConfig & ((Config.FakeTimersConfig & {
|
|
51
|
-
now?:
|
|
51
|
+
now?: Exclude<Config.FakeTimersConfig["now"], Date>;
|
|
52
52
|
}) | Config.LegacyFakeTimersConfig);
|
|
53
53
|
filter: string;
|
|
54
54
|
findRelatedTests: boolean;
|
|
55
|
-
forceCoverageMatch: string
|
|
55
|
+
forceCoverageMatch: Array<string>;
|
|
56
56
|
forceExit: boolean;
|
|
57
57
|
json: boolean;
|
|
58
58
|
globals: Config.ConfigGlobals;
|
|
59
|
-
globalSetup: string;
|
|
60
|
-
globalTeardown: string;
|
|
59
|
+
globalSetup: string | null | undefined;
|
|
60
|
+
globalTeardown: string | null | undefined;
|
|
61
61
|
haste: Config.HasteConfig;
|
|
62
62
|
id: string;
|
|
63
63
|
injectGlobals: boolean;
|
|
64
|
-
reporters:
|
|
64
|
+
reporters: Array<string | Config.ReporterConfig>;
|
|
65
65
|
logHeapUsage: boolean;
|
|
66
66
|
lastCommit: boolean;
|
|
67
67
|
listTests: boolean;
|
|
68
68
|
maxConcurrency: number;
|
|
69
|
-
maxWorkers:
|
|
70
|
-
moduleDirectories: string
|
|
71
|
-
moduleFileExtensions: string
|
|
69
|
+
maxWorkers: number | string;
|
|
70
|
+
moduleDirectories: Array<string>;
|
|
71
|
+
moduleFileExtensions: Array<string>;
|
|
72
72
|
moduleNameMapper: {
|
|
73
|
-
[key: string]: string | string
|
|
73
|
+
[key: string]: string | Array<string>;
|
|
74
74
|
};
|
|
75
|
-
modulePathIgnorePatterns: string
|
|
76
|
-
modulePaths: string
|
|
75
|
+
modulePathIgnorePatterns: Array<string>;
|
|
76
|
+
modulePaths: Array<string>;
|
|
77
77
|
noStackTrace: boolean;
|
|
78
78
|
notify: boolean;
|
|
79
79
|
notifyMode: string;
|
|
@@ -81,56 +81,38 @@ export declare class Jest28Stencil implements JestFacade {
|
|
|
81
81
|
onlyFailures: boolean;
|
|
82
82
|
outputFile: string;
|
|
83
83
|
passWithNoTests: boolean;
|
|
84
|
-
preset: string;
|
|
85
|
-
prettierPath: string;
|
|
86
|
-
projects:
|
|
87
|
-
replname: string;
|
|
84
|
+
preset: string | null | undefined;
|
|
85
|
+
prettierPath: string | null | undefined;
|
|
86
|
+
projects: Array<string | Config.InitialProjectOptions>;
|
|
87
|
+
replname: string | null | undefined;
|
|
88
88
|
resetMocks: boolean;
|
|
89
89
|
resetModules: boolean;
|
|
90
|
-
resolver: string;
|
|
90
|
+
resolver: string | null | undefined;
|
|
91
91
|
restoreMocks: boolean;
|
|
92
92
|
rootDir: string;
|
|
93
|
-
roots: string
|
|
93
|
+
roots: Array<string>;
|
|
94
94
|
runner: string;
|
|
95
95
|
runTestsByPath: boolean;
|
|
96
96
|
runtime: string;
|
|
97
|
-
sandboxInjectedGlobals: string
|
|
98
|
-
setupFiles: string
|
|
99
|
-
setupFilesAfterEnv: string
|
|
97
|
+
sandboxInjectedGlobals: Array<string>;
|
|
98
|
+
setupFiles: Array<string>;
|
|
99
|
+
setupFilesAfterEnv: Array<string>;
|
|
100
100
|
silent: boolean;
|
|
101
101
|
skipFilter: boolean;
|
|
102
102
|
skipNodeResolution: boolean;
|
|
103
103
|
slowTestThreshold: number;
|
|
104
104
|
snapshotResolver: string;
|
|
105
|
-
snapshotSerializers: string
|
|
106
|
-
snapshotFormat:
|
|
107
|
-
readonly min: boolean;
|
|
108
|
-
readonly indent: number;
|
|
109
|
-
readonly callToJSON: boolean;
|
|
110
|
-
readonly escapeRegex: boolean;
|
|
111
|
-
readonly escapeString: boolean;
|
|
112
|
-
readonly highlight: boolean;
|
|
113
|
-
readonly maxDepth: number;
|
|
114
|
-
readonly maxWidth: number;
|
|
115
|
-
readonly printBasicPrototype: boolean;
|
|
116
|
-
readonly printFunctionName: boolean;
|
|
117
|
-
readonly theme: Partial<{
|
|
118
|
-
readonly value: string;
|
|
119
|
-
readonly content: string;
|
|
120
|
-
readonly prop: string;
|
|
121
|
-
readonly tag: string;
|
|
122
|
-
readonly comment: string;
|
|
123
|
-
}>;
|
|
124
|
-
}>;
|
|
105
|
+
snapshotSerializers: Array<string>;
|
|
106
|
+
snapshotFormat: import("@jest/schemas").SnapshotFormat;
|
|
125
107
|
errorOnDeprecated: boolean;
|
|
126
108
|
testEnvironment: string;
|
|
127
109
|
testEnvironmentOptions: Record<string, unknown>;
|
|
128
110
|
testFailureExitCode: string | number;
|
|
129
111
|
testLocationInResults: boolean;
|
|
130
|
-
testMatch: string
|
|
112
|
+
testMatch: Array<string>;
|
|
131
113
|
testNamePattern: string;
|
|
132
|
-
testPathIgnorePatterns: string
|
|
133
|
-
testRegex: string | string
|
|
114
|
+
testPathIgnorePatterns: Array<string>;
|
|
115
|
+
testRegex: string | Array<string>;
|
|
134
116
|
testResultsProcessor: string;
|
|
135
117
|
testRunner: string;
|
|
136
118
|
testSequencer: string;
|
|
@@ -138,15 +120,15 @@ export declare class Jest28Stencil implements JestFacade {
|
|
|
138
120
|
transform: {
|
|
139
121
|
[regex: string]: string | Config.TransformerConfig;
|
|
140
122
|
};
|
|
141
|
-
transformIgnorePatterns: string
|
|
142
|
-
watchPathIgnorePatterns: string
|
|
143
|
-
unmockedModulePathPatterns: string
|
|
123
|
+
transformIgnorePatterns: Array<string>;
|
|
124
|
+
watchPathIgnorePatterns: Array<string>;
|
|
125
|
+
unmockedModulePathPatterns: Array<string>;
|
|
144
126
|
updateSnapshot: boolean;
|
|
145
127
|
useStderr: boolean;
|
|
146
128
|
verbose?: boolean;
|
|
147
129
|
watch: boolean;
|
|
148
130
|
watchAll: boolean;
|
|
149
131
|
watchman: boolean;
|
|
150
|
-
watchPlugins:
|
|
132
|
+
watchPlugins: Array<string | [string, Record<string, unknown>]>;
|
|
151
133
|
}>;
|
|
152
134
|
}
|
|
@@ -14,14 +14,14 @@ export declare class Jest29Stencil implements JestFacade {
|
|
|
14
14
|
getDefaultJestRunner(): string;
|
|
15
15
|
getCreateJestPuppeteerEnvironment(): typeof createJestPuppeteerEnvironment;
|
|
16
16
|
getJestPreprocessor(): {
|
|
17
|
-
process(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions
|
|
18
|
-
getCacheKey(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions
|
|
17
|
+
process(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions): import("@jest/transform").TransformedSource;
|
|
18
|
+
getCacheKey(sourceText: string, sourcePath: string, options: import("@jest/transform").TransformOptions): string;
|
|
19
19
|
};
|
|
20
20
|
getCreateJestTestRunner(): typeof createTestRunner;
|
|
21
21
|
getJestSetupTestFramework(): typeof jestSetupTestFramework;
|
|
22
22
|
getJestPreset(): Partial<{
|
|
23
23
|
automock: boolean;
|
|
24
|
-
bail:
|
|
24
|
+
bail: boolean | number;
|
|
25
25
|
cache: boolean;
|
|
26
26
|
cacheDirectory: string;
|
|
27
27
|
ci: boolean;
|
|
@@ -29,9 +29,9 @@ export declare class Jest29Stencil implements JestFacade {
|
|
|
29
29
|
changedFilesWithAncestor: boolean;
|
|
30
30
|
changedSince: string;
|
|
31
31
|
collectCoverage: boolean;
|
|
32
|
-
collectCoverageFrom: string
|
|
32
|
+
collectCoverageFrom: Array<string>;
|
|
33
33
|
coverageDirectory: string;
|
|
34
|
-
coveragePathIgnorePatterns: string
|
|
34
|
+
coveragePathIgnorePatterns: Array<string>;
|
|
35
35
|
coverageProvider: "babel" | "v8";
|
|
36
36
|
coverageReporters: Config.CoverageReporters;
|
|
37
37
|
coverageThreshold: {
|
|
@@ -43,34 +43,34 @@ export declare class Jest29Stencil implements JestFacade {
|
|
|
43
43
|
detectOpenHandles: boolean;
|
|
44
44
|
displayName: string | Config.DisplayName;
|
|
45
45
|
expand: boolean;
|
|
46
|
-
extensionsToTreatAsEsm: string
|
|
46
|
+
extensionsToTreatAsEsm: Array<string>;
|
|
47
47
|
fakeTimers: Config.GlobalFakeTimersConfig & ((Config.FakeTimersConfig & {
|
|
48
|
-
now?:
|
|
48
|
+
now?: Exclude<Config.FakeTimersConfig["now"], Date>;
|
|
49
49
|
}) | Config.LegacyFakeTimersConfig);
|
|
50
50
|
filter: string;
|
|
51
51
|
findRelatedTests: boolean;
|
|
52
|
-
forceCoverageMatch: string
|
|
52
|
+
forceCoverageMatch: Array<string>;
|
|
53
53
|
forceExit: boolean;
|
|
54
54
|
json: boolean;
|
|
55
55
|
globals: Config.ConfigGlobals;
|
|
56
|
-
globalSetup: string;
|
|
57
|
-
globalTeardown: string;
|
|
56
|
+
globalSetup: string | null | undefined;
|
|
57
|
+
globalTeardown: string | null | undefined;
|
|
58
58
|
haste: Config.HasteConfig;
|
|
59
59
|
id: string;
|
|
60
60
|
injectGlobals: boolean;
|
|
61
|
-
reporters:
|
|
61
|
+
reporters: Array<string | Config.ReporterConfig>;
|
|
62
62
|
logHeapUsage: boolean;
|
|
63
63
|
lastCommit: boolean;
|
|
64
64
|
listTests: boolean;
|
|
65
65
|
maxConcurrency: number;
|
|
66
|
-
maxWorkers:
|
|
67
|
-
moduleDirectories: string
|
|
68
|
-
moduleFileExtensions: string
|
|
66
|
+
maxWorkers: number | string;
|
|
67
|
+
moduleDirectories: Array<string>;
|
|
68
|
+
moduleFileExtensions: Array<string>;
|
|
69
69
|
moduleNameMapper: {
|
|
70
|
-
[key: string]: string | string
|
|
70
|
+
[key: string]: string | Array<string>;
|
|
71
71
|
};
|
|
72
|
-
modulePathIgnorePatterns: string
|
|
73
|
-
modulePaths: string
|
|
72
|
+
modulePathIgnorePatterns: Array<string>;
|
|
73
|
+
modulePaths: Array<string>;
|
|
74
74
|
noStackTrace: boolean;
|
|
75
75
|
notify: boolean;
|
|
76
76
|
notifyMode: string;
|
|
@@ -79,59 +79,40 @@ export declare class Jest29Stencil implements JestFacade {
|
|
|
79
79
|
openHandlesTimeout: number;
|
|
80
80
|
outputFile: string;
|
|
81
81
|
passWithNoTests: boolean;
|
|
82
|
-
preset: string;
|
|
83
|
-
prettierPath: string;
|
|
84
|
-
projects:
|
|
82
|
+
preset: string | null | undefined;
|
|
83
|
+
prettierPath: string | null | undefined;
|
|
84
|
+
projects: Array<string | Config.InitialProjectOptions>;
|
|
85
85
|
randomize: boolean;
|
|
86
|
-
replname: string;
|
|
86
|
+
replname: string | null | undefined;
|
|
87
87
|
resetMocks: boolean;
|
|
88
88
|
resetModules: boolean;
|
|
89
|
-
resolver: string;
|
|
89
|
+
resolver: string | null | undefined;
|
|
90
90
|
restoreMocks: boolean;
|
|
91
91
|
rootDir: string;
|
|
92
|
-
roots: string
|
|
92
|
+
roots: Array<string>;
|
|
93
93
|
runner: string;
|
|
94
94
|
runTestsByPath: boolean;
|
|
95
95
|
runtime: string;
|
|
96
|
-
sandboxInjectedGlobals: string
|
|
97
|
-
setupFiles: string
|
|
98
|
-
setupFilesAfterEnv: string
|
|
96
|
+
sandboxInjectedGlobals: Array<string>;
|
|
97
|
+
setupFiles: Array<string>;
|
|
98
|
+
setupFilesAfterEnv: Array<string>;
|
|
99
99
|
showSeed: boolean;
|
|
100
100
|
silent: boolean;
|
|
101
101
|
skipFilter: boolean;
|
|
102
102
|
skipNodeResolution: boolean;
|
|
103
103
|
slowTestThreshold: number;
|
|
104
104
|
snapshotResolver: string;
|
|
105
|
-
snapshotSerializers: string
|
|
106
|
-
snapshotFormat:
|
|
107
|
-
readonly min?: boolean;
|
|
108
|
-
readonly indent?: number;
|
|
109
|
-
readonly callToJSON?: boolean;
|
|
110
|
-
readonly escapeRegex?: boolean;
|
|
111
|
-
readonly escapeString?: boolean;
|
|
112
|
-
readonly highlight?: boolean;
|
|
113
|
-
readonly maxDepth?: number;
|
|
114
|
-
readonly maxWidth?: number;
|
|
115
|
-
readonly printBasicPrototype?: boolean;
|
|
116
|
-
readonly printFunctionName?: boolean;
|
|
117
|
-
readonly theme?: {
|
|
118
|
-
readonly value?: string;
|
|
119
|
-
readonly content?: string;
|
|
120
|
-
readonly prop?: string;
|
|
121
|
-
readonly tag?: string;
|
|
122
|
-
readonly comment?: string;
|
|
123
|
-
};
|
|
124
|
-
readonly compareKeys?: null;
|
|
125
|
-
};
|
|
105
|
+
snapshotSerializers: Array<string>;
|
|
106
|
+
snapshotFormat: import("@jest/schemas").SnapshotFormat;
|
|
126
107
|
errorOnDeprecated: boolean;
|
|
127
108
|
testEnvironment: string;
|
|
128
109
|
testEnvironmentOptions: Record<string, unknown>;
|
|
129
110
|
testFailureExitCode: string | number;
|
|
130
111
|
testLocationInResults: boolean;
|
|
131
|
-
testMatch: string
|
|
112
|
+
testMatch: Array<string>;
|
|
132
113
|
testNamePattern: string;
|
|
133
|
-
testPathIgnorePatterns: string
|
|
134
|
-
testRegex: string | string
|
|
114
|
+
testPathIgnorePatterns: Array<string>;
|
|
115
|
+
testRegex: string | Array<string>;
|
|
135
116
|
testResultsProcessor: string;
|
|
136
117
|
testRunner: string;
|
|
137
118
|
testSequencer: string;
|
|
@@ -139,17 +120,17 @@ export declare class Jest29Stencil implements JestFacade {
|
|
|
139
120
|
transform: {
|
|
140
121
|
[regex: string]: string | Config.TransformerConfig;
|
|
141
122
|
};
|
|
142
|
-
transformIgnorePatterns: string
|
|
143
|
-
watchPathIgnorePatterns: string
|
|
144
|
-
unmockedModulePathPatterns: string
|
|
123
|
+
transformIgnorePatterns: Array<string>;
|
|
124
|
+
watchPathIgnorePatterns: Array<string>;
|
|
125
|
+
unmockedModulePathPatterns: Array<string>;
|
|
145
126
|
updateSnapshot: boolean;
|
|
146
127
|
useStderr: boolean;
|
|
147
128
|
verbose?: boolean;
|
|
148
129
|
watch: boolean;
|
|
149
130
|
watchAll: boolean;
|
|
150
131
|
watchman: boolean;
|
|
151
|
-
watchPlugins:
|
|
152
|
-
workerIdleMemoryLimit:
|
|
132
|
+
watchPlugins: Array<string | [string, Record<string, unknown>]>;
|
|
133
|
+
workerIdleMemoryLimit: number | string;
|
|
153
134
|
workerThreads: boolean;
|
|
154
135
|
}>;
|
|
155
136
|
}
|
package/testing/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { EventInitDict, EventSpy, ScreenshotDiff, ScreenshotOptions } from '@stencil/core/internal';
|
|
3
2
|
// @ts-ignore - avoid requiring puppeteer as dependency
|
|
4
3
|
import type { ClickOptions, HTTPResponse, Page, ScreenshotOptions as PuppeteerScreenshotOptions, WaitForOptions } from 'puppeteer';
|
|
@@ -19,7 +19,7 @@ export declare function pageCompareScreenshot(page: pd.E2EPageInternal, env: E2E
|
|
|
19
19
|
allowableMismatchedPixels: number;
|
|
20
20
|
allowableMismatchedRatio: number;
|
|
21
21
|
testPath: string;
|
|
22
|
-
cacheKey: string;
|
|
22
|
+
cacheKey: string | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
export declare function createPuppeteerScreenshotOptions(opts: ScreenshotOptions, { width, height }: {
|
|
25
25
|
width: number;
|