Skip to content

Commit

Permalink
fix: πŸ› bring back missing e2e ignoring to vitest config (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman authored Dec 6, 2024
1 parent 3869d7c commit ef1d66d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/configs/testing.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { GLOB_E2E } from "../constants";
import { testingConfig } from "./testing";

describe("testingConfig", () => {
it("should create default config w/ vitest", async () => {
const [vitest] = await testingConfig({}, false);

expect(vitest?.name).toBe("jimmy.codes/vitest");
expect(vitest?.ignores).toStrictEqual(GLOB_E2E);
});

it("should create default config w/ jest", async () => {
const [jest] = await testingConfig({ framework: "jest" }, false);

expect(jest?.name).toBe("jimmy.codes/jest");
expect(jest?.ignores).toStrictEqual(GLOB_E2E);
});
});
1 change: 1 addition & 0 deletions src/configs/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const testingConfig = async (

configs.push({
files: GLOB_TESTS,
ignores: GLOB_E2E,
...vitestPlugin.configs.recommended,
name: "jimmy.codes/vitest",
rules: await vitestRules(),
Expand Down

0 comments on commit ef1d66d

Please sign in to comment.