Skip to content

Commit

Permalink
chore: migrate to vitest workspace (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
wattanx authored May 11, 2024
1 parent 6441081 commit e261f65
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 75 deletions.
8 changes: 0 additions & 8 deletions packages/converter-utils/vite.config.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insert-emits-option/vite.config.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { applyTransform } from "jscodeshift/src/testUtils";
import transform from "./define-nuxt-plugin";
import { test, expect } from "vitest";

test("js plugin", () => {
const source = `import { defineNuxtPlugin } from '@nuxtjs/composition-api';
Expand Down
7 changes: 0 additions & 7 deletions packages/nuxt-bridge-migration-tools/vite.config.ts

This file was deleted.

7 changes: 7 additions & 0 deletions packages/nuxt-bridge-migration-tools/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineProject } from "vitest/config";

export default defineProject({
test: {
globals: true,
},
});
9 changes: 0 additions & 9 deletions packages/vue-composition-converter/vite.config.ts

This file was deleted.

23 changes: 0 additions & 23 deletions packages/vue-mixins-converter/vite.config.ts

This file was deleted.

23 changes: 0 additions & 23 deletions packages/vue-script-setup-converter/vite.config.ts

This file was deleted.

10 changes: 10 additions & 0 deletions vitest.workspace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineWorkspace } from "vitest/config";

export default defineWorkspace([
"packages/*",
{
test: {
environment: "node",
},
},
]);

0 comments on commit e261f65

Please sign in to comment.