mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:33:25 +00:00
fix tests hanging
This commit is contained in:
@@ -10,7 +10,7 @@ if (shouldTestProviders) tests = ['src/__test__/providers/**/*.test.ts'];
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
eslintPlugin({}),
|
...(process.env.NODE_ENV !== 'test' ? [eslintPlugin()] : []),
|
||||||
dts({
|
dts({
|
||||||
rollupTypes: true,
|
rollupTypes: true,
|
||||||
}),
|
}),
|
||||||
@@ -38,12 +38,5 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
include: tests,
|
include: tests,
|
||||||
pool: 'forks',
|
|
||||||
poolOptions: {
|
|
||||||
forks: {
|
|
||||||
singleFork: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
reporters: ['verbose', 'hanging-process'],
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user