@forsakringskassan/vite-lib-config 5.9.0 → 5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/write-config.mjs +4 -5
- package/package.json +1 -1
package/dist/write-config.mjs
CHANGED
|
@@ -770,9 +770,7 @@ function generateViteConfig() {
|
|
|
770
770
|
`import { defineTestConfig } from "@forsakringskassan/vitest-config-jsdom";`,
|
|
771
771
|
``,
|
|
772
772
|
`export default defineConfig({`,
|
|
773
|
-
` test: defineTestConfig(
|
|
774
|
-
` setupFiles: ["./vitest.setup.ts"],`,
|
|
775
|
-
` }),`,
|
|
773
|
+
` test: defineTestConfig(),`,
|
|
776
774
|
`});`
|
|
777
775
|
].map((it) => `${it}
|
|
778
776
|
`).join("");
|
|
@@ -839,7 +837,7 @@ async function findCypressConfigPath(cwd) {
|
|
|
839
837
|
if (absolutePath) {
|
|
840
838
|
return path3.relative(cwd, absolutePath).replaceAll("\\", "/");
|
|
841
839
|
}
|
|
842
|
-
return "cypress/tsconfig.json";
|
|
840
|
+
return "./cypress/tsconfig.json";
|
|
843
841
|
}
|
|
844
842
|
function shouldPrune(filename) {
|
|
845
843
|
if (filename.startsWith("tsconfig.") && filename.endsWith(".json")) {
|
|
@@ -899,7 +897,8 @@ async function run(cwd, argv) {
|
|
|
899
897
|
["tsconfig.selectors.json", generateTsconfigSelectors(options)],
|
|
900
898
|
["tsconfig.pageobjects.json", generateTsconfigPageobjects(options)],
|
|
901
899
|
["vite.config.ts", null],
|
|
902
|
-
["vite.config.mts", generateViteConfig()]
|
|
900
|
+
["vite.config.mts", generateViteConfig()],
|
|
901
|
+
["vitest.setup.ts", null]
|
|
903
902
|
]);
|
|
904
903
|
console.group("Writing configuration files");
|
|
905
904
|
console.log("API Extractor:", flagEnabled(options.enableApiExtractor));
|