Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Removed Yarn References #65

Merged
merged 3 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ node_js:
- '16.0.0'
before_install:
- npm i -g npm@8.0.0
- yarn global add typescript
- yarn global add webpack
- npm install -g typescript
- npm install -g webpack
before_script:
- source ./scripts/is_latest.sh
script:
- yarn run lint
- yarn run test
- npm run lint
- npm run test
deploy:
- provider: script
skip_cleanup: true
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,23 @@ Pull requests are awesome. If you're looking to raise a PR for something which d

### Testing

EOSJS is used by many libraries across the EOS ecosystem, so proper testing is absolutely essential prior to opening a pull request. This can be done in EOSJS by running `yarn build-production`. This command will build the distrubution bundles (`yarn build-all`) and test each environment accordingly (`yarn test-all`).
EOSJS is used by many libraries across the EOS ecosystem, so proper testing is absolutely essential prior to opening a pull request. This can be done in EOSJS by running `npm run build-production`. This command will build the distribution bundles (`npm run build`) and (`npm run build-web`) and test each environment accordingly (`npm run test-all`).

#### Automated Unit Test Suite

`yarn test` will run through the core functionality of each EOSJS module with Jest.
`npm run test` will run through the core functionality of each EOSJS module with Jest.

#### Integration Test Suite

Integration tests will only work with a local node running on port 8888 and with test accounts "bobtestlion1" and "alicetestlio".

##### Web Environment

Run `yarn build-web` to create the `dist-web` folder and web distrubution modules then `yarn test-web`. This will run through the `tests/web.html` file using Cypress to inform you on the command line of any test failures.
Run `npm run build-web` to create the `dist-web` folder and web distrubution modules then `npm run cypress`. This will run through the `tests/web.html` file using Cypress to inform you on the command line of any test failures.

##### NodeJS Environment

Run `yarn build` to build the NPM distribution bundle then run `yarn test-node`. This will create an out of box node environment with `tests/node.js` then test that environment with Jest and relay the results to the command line.
Run `npm run build` to build the NPM distribution bundle then run `npm run test-node`. This will create an out of box node environment with `tests/node.js` then test that environment with Jest and relay the results to the command line.

### Quality Assurance

Expand Down
Loading