Skip to content

Commit

Permalink
done function
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Nov 28, 2024
1 parent 12461be commit 1db0161
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/1.cypress.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import assert from 'node:assert';
import { exec, fork } from 'node:child_process';
import { describe, it } from 'node:test';
await describe('faster-web-helper', async () => {
await it('should run Cypress tests', () => {
await it('should run Cypress tests', (context, done) => {
const appProcess = fork('app.js');
let cypressCommand = 'cypress run --config-file cypress.config.ts --browser chrome';
if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') {
Expand All @@ -25,6 +25,7 @@ await describe('faster-web-helper', async () => {
// ignore
}
assert.ok(code === 0);
done();
});
});
});
4 changes: 3 additions & 1 deletion test/1.cypress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { exec, fork } from 'node:child_process'
import { describe, it } from 'node:test'

await describe('faster-web-helper', async () => {
await it('should run Cypress tests', () => {
await it('should run Cypress tests', (context, done) => {
const appProcess = fork('app.js')

let cypressCommand =
Expand Down Expand Up @@ -34,6 +34,8 @@ await describe('faster-web-helper', async () => {
}

assert.ok(code === 0)

done()
})
})
})

0 comments on commit 1db0161

Please sign in to comment.