Skip to content

Commit e19196e

Browse files
(WIP) Add integration tests
This adds integration tests that test the core functionality of the SDK. I’ve tried to make them quite readable, which has the side effect of making them quite verbose, but my experience in the past has been that this kind of test can be extremely difficult to understand when not adequately commented. TODO still need to add tests for component locking functionality Resolves COL-56.
1 parent 9eb49d1 commit e19196e

File tree

4 files changed

+567
-4
lines changed

4 files changed

+567
-4
lines changed

.github/workflows/dev-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
deployments: write
6060
steps:
6161
- uses: actions/checkout@v2
62+
with:
63+
submodules: true
6264
- uses: actions/setup-node@v1
6365
with:
6466
node-version: 18

CONTRIBUTING.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929

3030
## Test suite
3131

32+
### Setup
33+
34+
Before running the tests, you first need to initialize the repository’s submodules:
35+
36+
```
37+
git submodule update --init
38+
```
39+
40+
### Running the tests
41+
3242
To run the Jest tests, simply run the following command:
3343

3444
```bash
@@ -39,7 +49,6 @@ npm test
3949

4050
To test the bundle that we upload to the CDN:
4151

42-
1. Initialize submodules: `git submodule update --init`
43-
2. Install browser for Playwright to use: `npx run playwright install chromium`
44-
3. Build the bundle: `npm run build`
45-
4. Run the test: `npm run test:cdn-bundle`
52+
1. Install browser for Playwright to use: `npx run playwright install chromium`
53+
2. Build the bundle: `npm run build`
54+
3. Run the test: `npm run test:cdn-bundle`

0 commit comments

Comments
 (0)