we go again

This commit is contained in:
Jorrin 2024-03-31 15:44:55 +02:00
parent cce3b810c3
commit d1d7f5cf72
2 changed files with 7 additions and 6 deletions

View File

@ -27,9 +27,10 @@ jobs:
cache: "pnpm"
- name: Install packages
run: pnpm install --frozen-lockfile && node ./node_modules/puppeteer/install.mjs
env:
PUPPETEER_SKIP_DOWNLOAD: true
run: pnpm install --frozen-lockfile
- name: Install puppeteer
run: node ./node_modules/puppeteer/install.mjs
- name: Run tests
run: pnpm run test

View File

@ -8,9 +8,9 @@ const shouldTestProviders = process.env.MW_TEST_PROVIDERS === 'true';
let tests: string[] = ['src/__test__/standard/**/*.test.ts'];
if (shouldTestProviders) tests = ['src/__test__/providers/**/*.test.ts'];
export default defineConfig({
export default defineConfig((env) => ({
plugins: [
...(process.env.NODE_ENV !== 'test' ? [eslintPlugin()] : []),
env.mode !== 'test' && eslintPlugin(),
dts({
rollupTypes: true,
}),
@ -39,4 +39,4 @@ export default defineConfig({
test: {
include: tests,
},
});
}));