Upgrade jest => 29.0
This commit is contained in:
@@ -2,7 +2,7 @@ module.exports = {
|
|||||||
transform: {
|
transform: {
|
||||||
"^.+\\.svelte$": ["svelte-jester", { preprocess: true }],
|
"^.+\\.svelte$": ["svelte-jester", { preprocess: true }],
|
||||||
"^.+\\.js$": "babel-jest",
|
"^.+\\.js$": "babel-jest",
|
||||||
"^.+\\.ts$": "ts-jest",
|
"^.+\\.ts$": ["ts-jest", { babelConfig: true, useESM: true }],
|
||||||
},
|
},
|
||||||
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
|
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
|
||||||
testEnvironment: "jsdom",
|
testEnvironment: "jsdom",
|
||||||
@@ -10,10 +10,4 @@ module.exports = {
|
|||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
"\\$lib/(.+)$": "<rootDir>/src/lib/$1",
|
"\\$lib/(.+)$": "<rootDir>/src/lib/$1",
|
||||||
},
|
},
|
||||||
globals: {
|
|
||||||
"ts-jest": {
|
|
||||||
babelConfig: true,
|
|
||||||
useESM: true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|||||||
4893
package-lock.json
generated
4893
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -45,12 +45,13 @@
|
|||||||
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
||||||
"@typescript-eslint/parser": "^4.31.1",
|
"@typescript-eslint/parser": "^4.31.1",
|
||||||
"autoprefixer": "^10.3.7",
|
"autoprefixer": "^10.3.7",
|
||||||
"babel-jest": "^27.4.5",
|
"babel-jest": "^29.0.0",
|
||||||
"cssnano": "^5.0.8",
|
"cssnano": "^5.0.8",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-svelte3": "^3.2.1",
|
"eslint-plugin-svelte3": "^3.2.1",
|
||||||
"jest": "^27.4.5",
|
"jest": "^29.0.0",
|
||||||
|
"jest-environment-jsdom": "^29.6.1",
|
||||||
"mdsvex": "^0.9.8",
|
"mdsvex": "^0.9.8",
|
||||||
"postcss": "^8.3.9",
|
"postcss": "^8.3.9",
|
||||||
"postcss-load-config": "^3.1.0",
|
"postcss-load-config": "^3.1.0",
|
||||||
@@ -67,7 +68,7 @@
|
|||||||
"svelte-preprocess": "^5.0.0",
|
"svelte-preprocess": "^5.0.0",
|
||||||
"svelte2tsx": "^0.6.15",
|
"svelte2tsx": "^0.6.15",
|
||||||
"tailwindcss": "^3.0.0",
|
"tailwindcss": "^3.0.0",
|
||||||
"ts-jest": "^27.1.2",
|
"ts-jest": "^29.0.0",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"typescript": "^4.4.3",
|
"typescript": "^4.4.3",
|
||||||
"vite": "^4.3.9"
|
"vite": "^4.3.9"
|
||||||
|
|||||||
2
src/lib/components/portal/portal.test.ts
vendored
2
src/lib/components/portal/portal.test.ts
vendored
@@ -288,7 +288,7 @@ it('should be possible to force the Portal into a specific element using PortalG
|
|||||||
|
|
||||||
// The random whitespace in here is a little annoying but whatever
|
// The random whitespace in here is a little annoying but whatever
|
||||||
expect(document.body.innerHTML).toMatchInlineSnapshot(
|
expect(document.body.innerHTML).toMatchInlineSnapshot(
|
||||||
`"<div><main><aside id=\\"group-1\\">A<div>Next to A</div></aside> <section id=\\"group-2\\"><span>B</span></section> </main></div><div id=\\"headlessui-portal-root\\"><div>I am in the portal root</div></div>"`
|
`"<div><main><aside id=\"group-1\">A<div>Next to A</div></aside> <section id=\"group-2\"><span>B</span></section> </main></div><div id=\"headlessui-portal-root\"><div>I am in the portal root</div></div>"`
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user