vue-cli-plugin-electron-builder
vue-cli-plugin-electron-builder copied to clipboard
test with palywright show warning "Jest did not exit one second after the test run has completed."
currently i have migrated to v3 alpha4 electron builder
and im trying playwright with electron + vue.js
i have successfully end my tests everything passed
but i get "Jest did not exit one second after the test run has completed." warning
when i retest with --detectOpenHandles options
i gets following error
`Jest has detected the following 1 open handle potentially keeping Jest from exiting:
● PIPEWRAP
4 | describe("화면 시작", () => {
5 | beforeAll(async () => {
> 6 | const { stdout, url, stop, app } = await testWithPlaywright();
| ^
7 | this.stop = stop;
8 | console.log(`결과: ${stdout}`);
9 | console.log(`서버 정보: ${url}`);
at Array.reduce (<anonymous>)
at execa (node_modules/vue-cli-plugin-electron-builder/node_modules/execa/index.js:83:26)
at node_modules/vue-cli-plugin-electron-builder/lib/testWithPlaywright.js:11:19
at Object.<anonymous>.module.exports (node_modules/vue-cli-plugin-electron-builder/lib/testWithPlaywright.js:6:3)
at Object.testWithPlaywright (test/test.spec.js:6:46)
at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:317:13)
at runJest (node_modules/@jest/core/build/runJest.js:407:19)
at _run10000 (node_modules/@jest/core/build/cli/index.js:338:7)
at runCLI (node_modules/@jest/core/build/cli/index.js:190:3)
`
this is how i stopped playwright application
afterAll(() => { this.stop(); });