Skip to content

Commit 28a09ba

Browse files
Copilotsiddharthkpfrancinelucca
authored
Enable detectAsyncLeaks in Vitest tests (#7616)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: siddharthkp <1863771+siddharthkp@users.noreply.github.com> Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
1 parent 90cb7b6 commit 28a09ba

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/doc-gen/vitest.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ export default defineConfig({
66
},
77
test: {
88
environment: 'node',
9+
detectAsyncLeaks: true,
910
},
1011
})

packages/postcss-preset-primer/vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import {defineConfig} from 'vitest/config'
33
export default defineConfig({
44
test: {
55
environment: 'node',
6+
detectAsyncLeaks: true,
67
},
78
})

packages/react/vitest.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ export default defineConfig({
2525
name: '@primer/react (node)',
2626
include: ['src/__tests__/exports.test.ts', 'src/__tests__/storybook.test.tsx'],
2727
environment: 'node',
28+
detectAsyncLeaks: true,
2829
},
2930
})

packages/styled-react/vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default defineConfig({
55
name: '@primer/styled-react (node)',
66
environment: 'node',
77
exclude: ['src/**/*.browser.test.?(c|m)[jt]s?(x)'],
8+
detectAsyncLeaks: true,
89
},
910
})

0 commit comments

Comments
 (0)