Skip to content

Commit

Permalink
use playwright image
Browse files Browse the repository at this point in the history
  • Loading branch information
acharb committed Apr 22, 2024
1 parent 2bb8554 commit 2493b6c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/playwrightTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Playwright Tests
on: [pull_request]
jobs:
playwright:
name: "Playwright e2e Tests"
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.43.0-jammy
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: yarn install
- run: yarn build
- run: yarn test:e2e:ci
9 changes: 9 additions & 0 deletions @stellar/typescript-wallet-sdk/jest.e2e.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
rootDir: "./",
preset: "ts-jest",
transform: {
"^.+\\.(ts|tsx)?$": "ts-jest",
"^.+\\.(js|jsx)$": "babel-jest",
},
testMatch: ["**/e2e/*.test.ts"],
};
1 change: 1 addition & 0 deletions @stellar/typescript-wallet-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"scripts": {
"test": "jest --watchAll",
"test:ci": "jest --ci",
"test:e2e:ci": "jest --config jest.e2e.config.js --ci",
"test:recovery:ci": "jest --config jest.integration.config.js recovery.test.ts --ci",
"test:anchorplatform:ci": "yarn jest --config jest.integration.config.js anchorplatform.test.ts --ci",
"build:web": "webpack --config webpack.config.js",
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
{
displayName: "Wallet SDK",
roots: ["./@stellar/typescript-wallet-sdk"],
testPathIgnorePatterns: ["/node_modules/", "/integration/"],
testPathIgnorePatterns: ["/node_modules/", "/integration/", "/e2e/"],
...commonConfigs,
},
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lint": "eslint . --ext .ts",
"test": "jest --watchAll",
"test:ci": "jest --ci",
"test:e2e:ci": "yarn workspace @stellar/typescript-wallet-sdk test:e2e:ci",
"test:recovery:ci": "yarn workspace @stellar/typescript-wallet-sdk test:recovery:ci",
"test:anchorplatform:ci": "yarn workspace @stellar/typescript-wallet-sdk test:anchorplatform:ci",
"build": "yarn workspace @stellar/typescript-wallet-sdk build && yarn workspace @stellar/typescript-wallet-sdk-km build && yarn workspace @stellar/typescript-wallet-sdk-soroban build"
Expand Down

0 comments on commit 2493b6c

Please sign in to comment.