Skip to content

Commit c9a3c7f

Browse files
authored
refactor: use npm instead of yarn
1 parent 1f93db3 commit c9a3c7f

File tree

11 files changed

+25747
-8001
lines changed

11 files changed

+25747
-8001
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
node-version: [12.x, 14.x]
25+
node-version: [14.x, 16.x]
2626
steps:
2727
- uses: actions/checkout@v2
2828
- name: Use Node.js ${{ matrix.node-version }}
@@ -31,14 +31,14 @@ jobs:
3131
node-version: ${{ matrix.node-version }}
3232
- name: Install dependencies
3333
run: |
34-
yarn install --frozen-lockfile
34+
npm ci
3535
cd test/e2e/example
36-
yarn install --frozen-lockfile
36+
npm ci
3737
env:
3838
CI: true
3939
- name: Run tests and generate coverage information
4040
run: |
41-
yarn run test:ci
41+
npm run test:ci
4242
env:
4343
CI: true
4444
- name: Upload coverage to Codecov

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ module.exports = {
99
'!src/index.ts',
1010
'!src/defaultOptions.ts',
1111
],
12+
globals:{
13+
'ts-jest': {
14+
diagnostics: false
15+
},
16+
},
1217
watchPlugins: [
1318
require.resolve('jest-watch-typeahead/filename'),
1419
require.resolve('jest-watch-typeahead/testname'),

0 commit comments

Comments
 (0)