-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
… new waku project (#808) follow up #728 - [x] implement a new feature --------- Co-authored-by: Joel Mathew Koshy <[email protected]> Co-authored-by: Daishi Kato <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { spawn } from 'node:child_process'; | ||
import { exec, spawn } from 'node:child_process'; | ||
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on macos-latest (Node 18.17.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on macos-latest (Node 20.8.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 20.8.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 20.8.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 18.17.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 18.17.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (3/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 18.17.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 18.17.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 20.8.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 20.8.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on macos-latest (Node 20.8.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on macos-latest (Node 18.17.0) - (2/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on macos-latest (Node 18.17.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 20.8.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on macos-latest (Node 20.8.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 20.8.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (1/4)Child Process Error
Check failure on line 1 in e2e/create-waku.spec.ts GitHub Actions / E2E on windows-latest (Node 18.17.0) - (1/4)Child Process Error
|
||
import { fileURLToPath } from 'node:url'; | ||
import crypto from 'node:crypto'; | ||
import { mkdir, readdir, cp, readFile, writeFile } from 'node:fs/promises'; | ||
import { test, debugChildProcess, terminate } from './utils.js'; | ||
import { test, debugChildProcess } from './utils.js'; | ||
import { expect } from '@playwright/test'; | ||
|
||
test('should create waku with default setup work', async () => { | ||
|
@@ -43,7 +43,7 @@ test('should create waku with default setup work', async () => { | |
expect(files).toContain('package.json'); | ||
expect(files).toContain('src'); | ||
expect(files).toContain('tsconfig.json'); | ||
await terminate(childProcess.pid!); | ||
exec(`rm -rf ${cwd}`); | ||
}); | ||
|
||
test('should create waku with update notify work', async () => { | ||
|
@@ -87,5 +87,6 @@ test('should create waku with update notify work', async () => { | |
break; | ||
} | ||
} | ||
exec(`rm -rf ${cwd}`); | ||
// no need to kill the process, it will exit by itself | ||
}); |