Skip to content

Commit a01cd89

Browse files
authored
Update Dependencies, Refactor Unit Tests (#36)
1 parent 384a949 commit a01cd89

9 files changed

+4729
-604
lines changed

.github/workflows/pr-workflow.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ jobs:
1414
- name: Run checks
1515
run: npm run check
1616

17-
- name: Compile Typescript
18-
run: npm run build
19-
2017
- name: Run Tests
2118
run: npm test
2219

20+
- name: Compile Typescript
21+
run: npm run build
22+
2323
- name: Run mabl tests against deployment
2424
id: mabl-test-deployment
2525
uses: ./
2626
env:
2727
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
with:
30-
application-id: l-j3VqIO6lLLOOEoFTPSxA-a
31-
environment-id: rtb4kWD5LuTr2KxaHvwfaA-e
30+
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
31+
environment-id: I9tfo2dWd7WSigXcO91feA-e
32+
browser-types: chrome

.github/workflows/push-workflow.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ jobs:
1515
- name: Run checks
1616
run: npm run check
1717

18-
- name: Compile Typescript
19-
run: npm run build
20-
2118
- name: Run Tests
2219
run: npm test
2320

21+
- name: Compile Typescript
22+
run: npm run build
23+
2424
- name: Run mabl tests against deployment
2525
id: mabl-test-deployment
2626
uses: ./
2727
env:
2828
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
with:
31-
application-id: l-j3VqIO6lLLOOEoFTPSxA-a
32-
environment-id: rtb4kWD5LuTr2KxaHvwfaA-e
31+
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
32+
environment-id: I9tfo2dWd7WSigXcO91feA-e
33+
browser-types: chrome

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
77

8+
.npmrc
9+
810
# Runtime data
911
pids
1012
*.pid

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ inputs:
1818
required: false
1919
browser-types:
2020
description: ^
21-
'override for the browser types to test. If not provided, mabl will test
21+
'override for the browser types to test (comma separated). If not provided, mabl will test
2222
the browsers configured on the triggered test plans.'
2323
required: false
2424
uri:
@@ -64,4 +64,4 @@ outputs:
6464

6565
runs:
6666
using: "node12"
67-
main: "lib/index.js"
67+
main: "lib/src/index.js"

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
roots: ['<rootDir>/test'],
3+
transform: {
4+
'^.+\\.tsx?$': 'ts-jest',
5+
},
6+
testEnvironment: 'node',
7+
};

0 commit comments

Comments
 (0)