Skip to content

Commit

Permalink
Update Dependencies, Refactor Unit Tests (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedpair committed May 11, 2021
1 parent 384a949 commit a01cd89
Show file tree
Hide file tree
Showing 9 changed files with 4,729 additions and 604 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pr-workflow.yaml
Expand Up @@ -14,18 +14,19 @@ jobs:
- name: Run checks
run: npm run check

- name: Compile Typescript
run: npm run build

- name: Run Tests
run: npm test

- name: Compile Typescript
run: npm run build

- name: Run mabl tests against deployment
id: mabl-test-deployment
uses: ./
env:
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
application-id: l-j3VqIO6lLLOOEoFTPSxA-a
environment-id: rtb4kWD5LuTr2KxaHvwfaA-e
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
environment-id: I9tfo2dWd7WSigXcO91feA-e
browser-types: chrome
11 changes: 6 additions & 5 deletions .github/workflows/push-workflow.yaml
Expand Up @@ -15,18 +15,19 @@ jobs:
- name: Run checks
run: npm run check

- name: Compile Typescript
run: npm run build

- name: Run Tests
run: npm test

- name: Compile Typescript
run: npm run build

- name: Run mabl tests against deployment
id: mabl-test-deployment
uses: ./
env:
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
application-id: l-j3VqIO6lLLOOEoFTPSxA-a
environment-id: rtb4kWD5LuTr2KxaHvwfaA-e
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
environment-id: I9tfo2dWd7WSigXcO91feA-e
browser-types: chrome
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,6 +5,8 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

.npmrc

# Runtime data
pids
*.pid
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Expand Up @@ -18,7 +18,7 @@ inputs:
required: false
browser-types:
description: ^
'override for the browser types to test. If not provided, mabl will test
'override for the browser types to test (comma separated). If not provided, mabl will test
the browsers configured on the triggered test plans.'
required: false
uri:
Expand Down Expand Up @@ -64,4 +64,4 @@ outputs:

runs:
using: "node12"
main: "lib/index.js"
main: "lib/src/index.js"
7 changes: 7 additions & 0 deletions jest.config.js
@@ -0,0 +1,7 @@
module.exports = {
roots: ['<rootDir>/test'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testEnvironment: 'node',
};

0 comments on commit a01cd89

Please sign in to comment.