0.28.0 • Published 18 days ago

0xsequence v0.28.0

Weekly downloads
217
License
Apache-2.0
Repository
github
Last release
18 days ago

0xsequence

Install

yarn add 0xsequence

Development Workflow

Sequence is a critical piece of software and any change should be delivered via a TDD (test-driven development) workflow.

As well, sequence.js's monorepo tooling is setup with preconstruct, which links all sub-packages together so it feels like a single program and is easy to work with. Please run yarn dev in the root of sequence.js/ folder to ensure the monorepo is in 'dev-mode'.

Second, you can run the test suite directly from console with a single yarn test, or you can boot up the Typescript compiling server (yarn test:server) and ethereum test node (yarn start:hardhat and yarn start:hardhat2) manually in separate terminals, and then run a specific test directly from your browser instance. We recommend running the test stack separately and running specific browser tests manually during development. See here for recommended setup.

Running E2E Tests

This 0xsequence top-level package contains e2e tests which run in a headless chrome browser.

You can view tests running directly from the browser directly, or from the cli which will communicate to the headless browser behind the scenes. See below. Please note, for an improved development workflow we highly recommend to view your tests running from the browser as its more clear and better experience.

From Browser

  1. yarn test:server -- in one terminal, to start the webpack server compiling typescript
  2. yarn start:hardhat -- in a second terminal, to start hardhat local ethereum test node
  3. yarn start:hardhat2 -- (2nd chain) in a third terminal, to start hardhat2 local ethereum test node
  4. open browser to http://localhost:9999/{browser-test-dir}/{test-filename}.test.html for example, http://localhost:9999/wallet-provider/dapp.test.html
  5. open your browser console so you can see the tests running and their results.

Finally, if you'd like to run only a specific test case, either add a temporary "return" statement following the last test case, so you will preempt the runner after a certain test case.

As well, since you have all the services running in terminals, you can also execute commands via the cli by calling test:run, which is similar to step 4 above, but executing all tests from the terminal. There is also the test:only command if you'd like to execute a specific test from ./tests/browser/*.spec.ts file, ie. yarn test:only window-transport.

From CLI

With a single command, you can spin up the testing stack and execute tests:

yarn test

This is useful for a sanity check to ensure tests pass, or using it with the CI. However, if you're developing on sequence.js, its highly recommended you follow the development workflow instructions.

0.28.0

2 months ago

0.27.2

2 months ago

0.27.1

2 months ago

0.27.0

2 months ago

0.25.2

2 months ago

0.26.0

2 months ago

0.0.0-202179214752

2 months ago

0.0.0-202179173111

2 months ago

0.0.0-20217621046

2 months ago

0.0.0-202176214316

2 months ago

0.0.0-202162919200

3 months ago

0.25.1

3 months ago

0.25.0

3 months ago

0.24.1

4 months ago

0.24.0

4 months ago

0.23.0

4 months ago

0.22.2

4 months ago

0.22.1

4 months ago

0.22.0

4 months ago

0.21.5

5 months ago

0.21.4

5 months ago

0.21.3

5 months ago

0.21.2

5 months ago

0.21.1

5 months ago

0.21.0

5 months ago

0.20.0

5 months ago

0.19.2

5 months ago

0.19.3

5 months ago

0.19.1

5 months ago

0.19.0

5 months ago

0.18.0

5 months ago

0.17.0

5 months ago

0.16.1

5 months ago

0.16.0

5 months ago

0.15.1

6 months ago

0.15.0

6 months ago

0.14.2

6 months ago

0.14.0

6 months ago

0.13.0

6 months ago

0.12.2

6 months ago

0.12.3

6 months ago

0.12.4

6 months ago

0.12.0

6 months ago

0.12.1

6 months ago

0.11.4

6 months ago

0.11.3

6 months ago

0.11.2

7 months ago

0.11.1

7 months ago

0.11.0

7 months ago

0.10.9

7 months ago

0.10.8

7 months ago

0.10.7

7 months ago

0.10.6

7 months ago

0.10.3

7 months ago

0.10.4

7 months ago

0.10.5

7 months ago

0.10.0

8 months ago

0.10.1

8 months ago

0.10.2

8 months ago

0.9.6

8 months ago

0.9.4

8 months ago

0.9.3

8 months ago

0.9.2

8 months ago

0.9.1

8 months ago

0.8.5

9 months ago

0.8.4

9 months ago

0.8.3

9 months ago

0.8.2

9 months ago

0.8.1

9 months ago

0.8.0

9 months ago

0.7.4

9 months ago

0.7.3

9 months ago

0.7.2

9 months ago

0.7.1

9 months ago

0.7.0

9 months ago

0.0.1

1 year ago