Skip to content

Commit

Permalink
test: add windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Mar 11, 2024
1 parent ee288cc commit 7ff2fbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ jobs:
E2E_TESTNET_PK: ${{ secrets.E2E_TESTNET_PK }}
run: |
npx jest --verbose --testPathPattern=${{ matrix.tags }}
shell: powershell
shell: bash
12 changes: 1 addition & 11 deletions test/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,7 @@ describe("Dev tests", () => {
describe("Check zksync-cli dev", () => {

it("npx zksync-cli dev config", () => {
let command: string;
if( process.platform === "win32" ) {
command = "" +
"$scriptContent = Get-Content \"npx zksync-cli dev config\"\n" +
"foreach ($line in $scriptContent) {\n" +
" Write-Host $line\n" +
" echo. | Out-Host\n" +
"}\n"
} else {
command = "yes | npx zksync-cli dev config";
}
const command = "yes | npx zksync-cli dev config";
const result = executeCommand(command);
console.log(result.output);
expect(result.exitCode).toBe(0);
Expand Down

0 comments on commit 7ff2fbb

Please sign in to comment.