switch to npm (#196)

* allow tests to be run manually
This commit is contained in:
ledhed2222
2021-10-14 15:46:02 -04:00
parent 418a791604
commit 457c840abb
6 changed files with 11533 additions and 3864 deletions

View File

@@ -8,6 +8,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
@@ -25,7 +26,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn run compile
- run: yarn run test
- run: yarn run lint
- run: npm install
- run: npm run compile
- run: npm test
- run: npm run lint

View File

@@ -4,6 +4,6 @@ node_js:
- 12
- 13
script:
- yarn compile
- yarn test
- yarn lint
- npm run compile
- npm test
- npm run lint

View File

@@ -163,15 +163,15 @@ Convert an X-address to its classic address, tag, and network ID.
Run unit tests with:
yarn test
npm test
Use `--watch` to run in watch mode, so that when you modify the tests, they are automatically re-run:
yarn test --watch
npm test -- --watch
Use `--coverage` to generate and display code coverage information:
yarn test --coverage
npm test -- --coverage
This tells jest to output code coverage info in the `./coverage` directory, in addition to showing it on the command line.

File diff suppressed because it is too large Load Diff

View File

@@ -32,9 +32,10 @@
"ts-jest": "^26.4.4",
"tslint": "^5.19.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^4.1.3"
"typescript": "^3.9.9"
},
"engines": {
"node": ">= 10"
"node": ">= 10",
"npm": ">=7.0.0"
}
}

File diff suppressed because it is too large Load Diff