Skip to content

Commit

Permalink
(subtree) chore(deps): update jest monorepo to v28 (major) (#1456)
Browse files Browse the repository at this point in the history
* chore(deps): update jest monorepo to v28

* test: fix jest.config.js

From jestjs/jest#12689, jest passes `rootDir` option to babel-jest.
If rootDir is project sub-directory (e.g. `src/`, `__tests__/`),
babel cannot load babel.config.js in project root.

* chore(rest-api-client): fix type error for dom (#1513)

* test(create-plugin): fix jest.config.js

* chore(rest-api-client): add type definition of Blob and BlobPart

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Masaharu TASHIRO <[email protected]>
Co-authored-by: tasshi / Masaharu TASHIRO <[email protected]>
Co-authored-by: Masashi Hirano <[email protected]>
  • Loading branch information
5 people authored May 19, 2022
1 parent b217fac commit d5c47bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
testRegex: "(?<!site)/test/[^\\/]*\\.spec.ts$",
testEnvironment: "node",
testTimeout: 30000,
};
module.exports = config;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"ajv": "^6.12.6",
"array-flatten": "^3.0.0",
"assert": "^2.0.0",
"babel-jest": "^27.5.1",
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
Expand All @@ -67,6 +66,7 @@
"cssnano": "^5.1.8",
"execa": "^5.1.1",
"glob": "^7.2.3",
"jest-environment-jsdom": "^28.1.0",
"normalize.css": "^8.0.1",
"path-browserify": "^1.0.1",
"postcss": "^8.4.14",
Expand Down
4 changes: 3 additions & 1 deletion site/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
testRegex: "/test/.*-test\\.js$",
testEnvironment: "jsdom",
};
module.exports = config;

0 comments on commit d5c47bd

Please sign in to comment.