diff --git a/package.json b/package.json index e43668d699..e5194cb771 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "svg-url-loader": "^8.0.0", "ts-node": "^10.9.2", "typescript": "^5.6.0", - "vitest": "0.28.5", + "vitest": "2.0.0", "webpack": "^5.97.1", "webpack-cli": "^5.1.4", "webpack-version-file-plugin": "^0.4.0" diff --git a/postcss.config.js b/postcss.config.js index e3c8a0a489..8b8340841e 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -6,7 +6,7 @@ module.exports = (ctx) => { const production = ctx.env === "production"; return { parser: "postcss-scss", - map: ctx.options.map, + map: ctx?.options?.map, plugins: [ postcssSass({ // We always want to inject all of our variables and mixins. diff --git a/src/apps/material/__snapshots__/helper.ts.snap b/src/apps/material/__snapshots__/helper.ts.snap index 1aab01d75a..4cfc6dbf99 100644 --- a/src/apps/material/__snapshots__/helper.ts.snap +++ b/src/apps/material/__snapshots__/helper.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1 +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`divideManifestationsByMaterialType > should divide manifestations by material type 1`] = ` { diff --git a/src/components/facet-browser/__snapshots__/helper.ts.snap b/src/components/facet-browser/__snapshots__/helper.ts.snap index 5c81431863..9e55d2433b 100644 --- a/src/components/facet-browser/__snapshots__/helper.ts.snap +++ b/src/components/facet-browser/__snapshots__/helper.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1 +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`createFacetsMap 1`] = ` { diff --git a/src/tests/unit/__snapshots__/contact-info.test.tsx.snap b/src/tests/unit/__snapshots__/contact-info.test.tsx.snap index 5abc05626c..2fd6f01aa7 100644 --- a/src/tests/unit/__snapshots__/contact-info.test.tsx.snap +++ b/src/tests/unit/__snapshots__/contact-info.test.tsx.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1 +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`ContactInfoInputs > Should NOT wrap the input fields if it is NOT inline 1`] = `
Should show the markup for the simple info label 1`] = `