Skip to content

Commit 23994a1

Browse files
committed
Fixing CI and Test for Unit Test and E2E
1 parent 0409d50 commit 23994a1

4 files changed

Lines changed: 1106 additions & 898 deletions

File tree

.github/workflows/testing-lab.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Testing Lab CI
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
types: [opened, synchronize, reopened]
3+
on: pull_request
94

105
jobs:
116
test:
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { defineConfig } from 'vitest/config';
1+
import { defineConfig, configDefaults } from "vitest/config";
22

33
export default defineConfig({
44
test: {
55
globals: true,
66
restoreMocks: true,
7-
environment: 'jsdom',
8-
setupFiles: ['./config/test/setup.ts'],
7+
environment: "jsdom",
8+
setupFiles: ["./config/test/setup.ts"],
9+
include: ["./src/**/*.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
10+
exclude: [...configDefaults.exclude, "e2e/*"],
911
},
1012
});

0 commit comments

Comments
 (0)