Skip to content

Commit

Permalink
chore: update jest to the latest version (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 authored Sep 18, 2022
1 parent 8ae327d commit 8c8cece
Show file tree
Hide file tree
Showing 10 changed files with 11,787 additions and 11,763 deletions.
1,444 changes: 734 additions & 710 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^28.1.3",
"babel-jest": "^29.0.3",
"bootstrap-sass": "^3.4.1",
"bootstrap-v4": "npm:bootstrap@^4.5.3",
"bootstrap-v5": "npm:bootstrap@^5.0.1",
Expand All @@ -85,8 +85,8 @@
"file-loader": "^6.2.0",
"foundation-sites": "^6.7.5",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-environment-node-single-context": "^28.1.0",
"jest": "^29.0.3",
"jest-environment-node-single-context": "^29.0.0",
"lint-staged": "^12.5.0",
"material-components-web": "^8.0.0",
"memfs": "^3.4.7",
Expand Down
160 changes: 80 additions & 80 deletions test/__snapshots__/additionalData-option.test.js.snap

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions test/__snapshots__/implementation-option.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,91 +1,91 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`implementation option 'dart-sass', 'legacy' API: errors 1`] = `Array []`;
exports[`implementation option 'dart-sass', 'legacy' API: errors 1`] = `[]`;

exports[`implementation option 'dart-sass', 'legacy' API: warnings 1`] = `Array []`;
exports[`implementation option 'dart-sass', 'legacy' API: warnings 1`] = `[]`;

exports[`implementation option 'dart-sass', 'modern' API: errors 1`] = `Array []`;
exports[`implementation option 'dart-sass', 'modern' API: errors 1`] = `[]`;

exports[`implementation option 'dart-sass', 'modern' API: warnings 1`] = `Array []`;
exports[`implementation option 'dart-sass', 'modern' API: warnings 1`] = `[]`;

exports[`implementation option 'node-sass', 'legacy' API: errors 1`] = `Array []`;
exports[`implementation option 'node-sass', 'legacy' API: errors 1`] = `[]`;

exports[`implementation option 'node-sass', 'legacy' API: warnings 1`] = `Array []`;
exports[`implementation option 'node-sass', 'legacy' API: warnings 1`] = `[]`;

exports[`implementation option 'sass_string', 'legacy' API: errors 1`] = `Array []`;
exports[`implementation option 'sass_string', 'legacy' API: errors 1`] = `[]`;

exports[`implementation option 'sass_string', 'legacy' API: warnings 1`] = `Array []`;
exports[`implementation option 'sass_string', 'legacy' API: warnings 1`] = `[]`;

exports[`implementation option 'sass-embedded', 'legacy' API: errors 1`] = `Array []`;
exports[`implementation option 'sass-embedded', 'legacy' API: errors 1`] = `[]`;

exports[`implementation option 'sass-embedded', 'legacy' API: warnings 1`] = `Array []`;
exports[`implementation option 'sass-embedded', 'legacy' API: warnings 1`] = `[]`;

exports[`implementation option 'sass-embedded', 'modern' API: errors 1`] = `Array []`;
exports[`implementation option 'sass-embedded', 'modern' API: errors 1`] = `[]`;

exports[`implementation option 'sass-embedded', 'modern' API: warnings 1`] = `Array []`;
exports[`implementation option 'sass-embedded', 'modern' API: warnings 1`] = `[]`;

exports[`implementation option not specify with legacy API: errors 1`] = `Array []`;
exports[`implementation option not specify with legacy API: errors 1`] = `[]`;

exports[`implementation option not specify with legacy API: warnings 1`] = `Array []`;
exports[`implementation option not specify with legacy API: warnings 1`] = `[]`;

exports[`implementation option not specify with modern API: errors 1`] = `Array []`;
exports[`implementation option not specify with modern API: errors 1`] = `[]`;

exports[`implementation option not specify with modern API: warnings 1`] = `Array []`;
exports[`implementation option not specify with modern API: warnings 1`] = `[]`;

exports[`implementation option not specify: errors 1`] = `Array []`;
exports[`implementation option not specify: errors 1`] = `[]`;

exports[`implementation option not specify: warnings 1`] = `Array []`;
exports[`implementation option not specify: warnings 1`] = `[]`;

exports[`implementation option should not swallow an error when trying to load a sass implementation: errors 1`] = `
Array [
[
"ModuleError: Module Error (from ../src/cjs.js):
Some error",
]
`;

exports[`implementation option should not swallow an error when trying to load a sass implementation: warnings 1`] = `Array []`;
exports[`implementation option should not swallow an error when trying to load a sass implementation: warnings 1`] = `[]`;

exports[`implementation option should throw an error on an unknown sass implementation: errors 1`] = `
Array [
[
"ModuleError: Module Error (from ../src/cjs.js):
Unknown Sass implementation \\"strange-sass\\".",
Unknown Sass implementation "strange-sass".",
]
`;

exports[`implementation option should throw an error on an unknown sass implementation: warnings 1`] = `Array []`;
exports[`implementation option should throw an error on an unknown sass implementation: warnings 1`] = `[]`;

exports[`implementation option should throw an error when the "info" is unparseable: errors 1`] = `
Array [
[
"ModuleError: Module Error (from ../src/cjs.js):
Unknown Sass implementation \\"asdfj\\".",
Unknown Sass implementation "asdfj".",
]
`;

exports[`implementation option should throw an error when the "info" is unparseable: warnings 1`] = `Array []`;
exports[`implementation option should throw an error when the "info" is unparseable: warnings 1`] = `[]`;

exports[`implementation option should throw error when the "info" does not exist: errors 1`] = `
Array [
[
"ModuleError: Module Error (from ../src/cjs.js):
Unknown Sass implementation.",
]
`;

exports[`implementation option should throw error when the "info" does not exist: warnings 1`] = `Array []`;
exports[`implementation option should throw error when the "info" does not exist: warnings 1`] = `[]`;

exports[`implementation option should throw error when unresolved package: errors 1`] = `
Array [
[
"ModuleError: Module Error (from ../src/cjs.js):
Cannot find module 'unresolved' from 'src/utils.js'",
]
`;

exports[`implementation option should throw error when unresolved package: warnings 1`] = `Array []`;
exports[`implementation option should throw error when unresolved package: warnings 1`] = `[]`;

exports[`implementation option should try to load using valid order: errors 1`] = `
Array [
[
"ModuleError: Module Error (from ../src/cjs.js):
Some error sass",
]
`;

exports[`implementation option should try to load using valid order: warnings 1`] = `Array []`;
exports[`implementation option should try to load using valid order: warnings 1`] = `[]`;
Loading

0 comments on commit 8c8cece

Please sign in to comment.