Skip to content

Commit

Permalink
fixup! test: add ui test with puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Jan 25, 2024
1 parent 940d55d commit 8ea92a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"execa": "^8.0.1",
"happy-dom": "^13.3.1",
"prettier": "^3.2.4",
"puppeteer": "^21.9.0",
Expand Down
6 changes: 3 additions & 3 deletions ui/test/App.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import puppeteer from 'puppeteer';
import { execa } from 'execa';
import { execSync, spawn } from 'node:child_process';

describe('Puppeteer E2E test', () => {
it('should load the webpage', async () => {
await execa('yarn', ['build']);
const previewServer = execa('yarn', ['preview'], {
execSync('yarn build');
const previewServer = spawn('yarn', ['preview'], {
detached: true,
stdio: 'ignore',
});
Expand Down

0 comments on commit 8ea92a0

Please sign in to comment.