mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 11:33:25 +00:00
we go again
This commit is contained in:
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@@ -27,9 +27,10 @@ jobs:
|
|||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: pnpm install --frozen-lockfile && node ./node_modules/puppeteer/install.mjs
|
run: pnpm install --frozen-lockfile
|
||||||
env:
|
|
||||||
PUPPETEER_SKIP_DOWNLOAD: true
|
- name: Install puppeteer
|
||||||
|
run: node ./node_modules/puppeteer/install.mjs
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pnpm run test
|
run: pnpm run test
|
||||||
|
@@ -8,9 +8,9 @@ const shouldTestProviders = process.env.MW_TEST_PROVIDERS === 'true';
|
|||||||
let tests: string[] = ['src/__test__/standard/**/*.test.ts'];
|
let tests: string[] = ['src/__test__/standard/**/*.test.ts'];
|
||||||
if (shouldTestProviders) tests = ['src/__test__/providers/**/*.test.ts'];
|
if (shouldTestProviders) tests = ['src/__test__/providers/**/*.test.ts'];
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig((env) => ({
|
||||||
plugins: [
|
plugins: [
|
||||||
...(process.env.NODE_ENV !== 'test' ? [eslintPlugin()] : []),
|
env.mode !== 'test' && eslintPlugin(),
|
||||||
dts({
|
dts({
|
||||||
rollupTypes: true,
|
rollupTypes: true,
|
||||||
}),
|
}),
|
||||||
@@ -39,4 +39,4 @@ export default defineConfig({
|
|||||||
test: {
|
test: {
|
||||||
include: tests,
|
include: tests,
|
||||||
},
|
},
|
||||||
});
|
}));
|
||||||
|
Reference in New Issue
Block a user