Skip to content

Commit a20bd55

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 a20bd55

File tree

4 files changed

+559
-4
lines changed

4 files changed

+559
-4
lines changed

.github/workflows/dev-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
runs-on: ubuntu-latest
3939
steps:
4040
- uses: actions/checkout@v2
41+
with:
42+
submodules: true
4143
- uses: actions/setup-node@v1
4244
with:
4345
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)