Skip to content

Commit

Permalink
refactor: move test to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 9, 2023
1 parent 3928982 commit ddce6e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/bun/index.test.ts → test/bun.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { readdirSync } from "node:fs";
// @ts-ignore
import { test } from "bun:test";

import jiti from "../../lib/index.js";
import jiti from "../lib/index.js";

const fixturesDir = fileURLToPath(new URL("../fixtures", import.meta.url));
const fixturesDir = fileURLToPath(new URL("fixtures", import.meta.url));

const fixtures = readdirSync(fixturesDir);

Expand Down
6 changes: 5 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
exclude: ["**/test.{ts,mjs,cjs,js}", "node_modules/**/*", "test/bun"],
exclude: [
"**/test.{ts,mjs,cjs,js}",
"node_modules/**/*",
"test/bun.test.ts",
],
},
});

0 comments on commit ddce6e9

Please sign in to comment.