Skip to content

Commit 9523aab

Browse files
committed
dev: add test suite
1 parent 41542da commit 9523aab

File tree

5 files changed

+1468
-3776
lines changed

5 files changed

+1468
-3776
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Test suite
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
pull_request:
11+
12+
jobs:
13+
tests:
14+
name: tests
15+
runs-on: ubuntu-latest
16+
# needs: [lintcode,lintstyle,lintdocs] # we could add prior jobs for linting, if desired
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup meteor
22+
uses: meteorengineer/setup-meteor@v1
23+
with:
24+
meteor-release: '3.2.2'
25+
26+
- name: cache dependencies
27+
uses: actions/cache@v3
28+
with:
29+
path: ~/.npm
30+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-node-
33+
- run: meteor npm install && meteor npm run test:ci -- "--release=3.2.2"

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,3 +715,17 @@ new Tabular.Table({
715715
```
716716

717717
If you are using the default DataTables theme, you can use the `dom` option instead of `buttonContainer`. See https://datatables.net/extensions/buttons/#Displaying-the-buttons
718+
719+
## Run the tests
720+
721+
You can run the tests the classic way using the browser
722+
723+
````shell
724+
$ meteor npm tun test:browser
725+
````
726+
727+
or headless using [mtest](https://github.com/zodern/mtest)
728+
729+
```shell
730+
$ meteor npm run test:headless
731+
```

biome.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "tab"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true
19+
}
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "double"
24+
}
25+
},
26+
"assist": {
27+
"enabled": true,
28+
"actions": {
29+
"source": {
30+
"organizeImports": "on"
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)