Skip to content

Commit eb9937d

Browse files
test: update
1 parent e5b62f7 commit eb9937d

File tree

7 files changed

+35
-23
lines changed

7 files changed

+35
-23
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/** @type {import('ts-jest').JestConfigWithTsJest} */
22
module.exports = {
3+
testTimeout: 10000,
34
transform: {
45
"\\.[mc]?tsx?$": ["ts-jest", { rootDir: ".", esModuleInterop: true }],
56
"\\.[mc]?jsx?$": "babel-jest",

package-lock.json

Lines changed: 5 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"dependencies": {
4848
"cosmiconfig": "^9.0.0",
49-
"jiti": "^2.5.1",
49+
"jiti": "^1.21.6",
5050
"semver": "^7.6.2"
5151
},
5252
"devDependencies": {

test/__snapshots__/execute.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`"execute" option should reuse PostCSS AST with JS styles: css 1`] = `
44
"a {

test/__snapshots__/implementation.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`"implementation" option should throw error when unresolved package: errors 1`] = `
44
[

test/__snapshots__/loader.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`check postcss versions to avoid using PostCSS 7 should emit a warning if postcss version is not explicitly specified when the loader is failed: errors 1`] = `
44
[

test/__snapshots__/sourceMap.test.js.snap

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`"sourceMap" option should generate inline source maps when the "devtool" is "false": css 1`] = `
44
"a {
@@ -113,7 +113,14 @@ exports[`"sourceMap" option should generate source maps using the "postcssOption
113113

114114
exports[`"sourceMap" option should generate source maps using the "postcssOptions.map" option with "true" value and previous loader returns source maps ("sass-loader"): errors 1`] = `[]`;
115115

116-
exports[`"sourceMap" option should generate source maps using the "postcssOptions.map" option with "true" value and previous loader returns source maps ("sass-loader"): warnings 1`] = `[]`;
116+
exports[`"sourceMap" option should generate source maps using the "postcssOptions.map" option with "true" value and previous loader returns source maps ("sass-loader"): warnings 1`] = `
117+
[
118+
"ModuleWarning: Module Warning (from \`replaced original path\`):
119+
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
120+
121+
More info: https://sass-lang.com/d/legacy-js-api",
122+
]
123+
`;
117124

118125
exports[`"sourceMap" option should generate source maps using the "postcssOptions.map" option with values and previous loader returns source maps ("sass-loader"): css 1`] = `
119126
"a {
@@ -142,7 +149,14 @@ exports[`"sourceMap" option should generate source maps using the "postcssOption
142149
}
143150
`;
144151

145-
exports[`"sourceMap" option should generate source maps using the "postcssOptions.map" option with values and previous loader returns source maps ("sass-loader"): warnings 1`] = `[]`;
152+
exports[`"sourceMap" option should generate source maps using the "postcssOptions.map" option with values and previous loader returns source maps ("sass-loader"): warnings 1`] = `
153+
[
154+
"ModuleWarning: Module Warning (from \`replaced original path\`):
155+
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
156+
157+
More info: https://sass-lang.com/d/legacy-js-api",
158+
]
159+
`;
146160

147161
exports[`"sourceMap" option should generate source maps when previous loader returns source maps ("less-loader"): css 1`] = `
148162
"a {
@@ -198,7 +212,14 @@ exports[`"sourceMap" option should generate source maps when previous loader ret
198212
}
199213
`;
200214

201-
exports[`"sourceMap" option should generate source maps when previous loader returns source maps ("sass-loader"): warnings 1`] = `[]`;
215+
exports[`"sourceMap" option should generate source maps when previous loader returns source maps ("sass-loader"): warnings 1`] = `
216+
[
217+
"ModuleWarning: Module Warning (from \`replaced original path\`):
218+
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
219+
220+
More info: https://sass-lang.com/d/legacy-js-api",
221+
]
222+
`;
202223

203224
exports[`"sourceMap" option should generate source maps when value is not specified and the "devtool" with "source-map" value: css 1`] = `
204225
"a {

0 commit comments

Comments
 (0)