Skip to content
This repository was archived by the owner on Feb 7, 2021. It is now read-only.

Commit 85cf473

Browse files
jordanpowell88wesleygrimes
authored andcommitted
Add e2e tests for forFeature and forRoot (#95)
* test(e2e): add e2e tests Closes #49
1 parent 0ae3b15 commit 85cf473

25 files changed

+1350
-2
lines changed

.github/workflows/master.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,18 @@ jobs:
2626
- run: npm ci
2727
- run: npm run test
2828

29+
e2e:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v1
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: 10
36+
- run: npm ci
37+
- run: npm run e2e
38+
2939
publish:
30-
needs: [test-8, test-10]
40+
needs: [test-8, test-10, e2e]
3141
runs-on: ubuntu-latest
3242
steps:
3343
- uses: actions/checkout@v1

.github/workflows/pull-requests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ jobs:
3636
- run: npm ci
3737
- run: npm run test
3838

39+
e2e:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v1
43+
- uses: actions/setup-node@v1
44+
with:
45+
node-version: 10
46+
- run: npm ci
47+
- run: npm run e2e
48+
3949
verify-format:
4050
runs-on: ubuntu-latest
4151
steps:

e2e/jest.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
moduleFileExtensions: ['js', 'json', 'ts'],
3+
rootDir: '.',
4+
testEnvironment: 'node',
5+
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
6+
transform: {
7+
'^.+\\.(ts|js|html)$' : 'ts-jest',
8+
},
9+
};

0 commit comments

Comments
 (0)