Skip to content

Commit a293b98

Browse files
committed
Port behavioural tests to JS.
1 parent 2b0a5c3 commit a293b98

File tree

9 files changed

+303
-202
lines changed

9 files changed

+303
-202
lines changed

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,32 @@ lint: setup-js
1111
cargo clippy -- --deny warnings
1212
cargo fmt --check
1313
bun x readme-cli-help check
14+
bun x @biomejs/biome check
1415

1516
.PHONY: format
1617
format: setup-js
1718
cargo clippy
1819
cargo fmt
1920
bun x readme-cli-help update
21+
bun x @biomejs/biome check --write
22+
23+
.PHONY: setup
24+
setup: setup-js
2025

2126
.PHONY: setup-js
2227
setup-js:
2328
bun install --frozen-lockfile
2429

25-
.PHONY: cargo-test test
26-
test: test-behaviour lint
30+
.PHONY: test
31+
test: cargo-test test-behaviour
2732

2833
.PHONY: cargo-test
2934
cargo-test:
3035
cargo test
3136

3237
.PHONY: test-behaviour
33-
test-behaviour:
34-
./test/test-behaviour.sh
38+
test-behaviour: setup-js
39+
bun test --timeout 15000
3540

3641
.PHONY: publish
3742
publish:

biome.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": ["./node_modules/@cubing/dev-config/biome/biome.json"],
4+
"files": {
5+
"includes": ["**", "!dist", "!package.json"]
6+
}
7+
}

bun.lock

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[install]
22
auto = "disable"
33
linker = "isolated"
4+
5+
[test]
6+
timeout = 15000

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
2-
"dependencies": {},
2+
"dependencies": {
3+
"path-class": "^0.10.3"
4+
},
35
"devDependencies": {
6+
"@biomejs/biome": "^2.3.8",
7+
"@cubing/dev-config": "^0.5.0",
8+
"@types/bun": "^1.3.4",
9+
"printable-shell-command": "^2.7.4",
410
"readme-cli-help": "^0.4.9"
511
}
612
}

test/helpers.sh

Lines changed: 0 additions & 77 deletions
This file was deleted.

test/test-behaviour.sh

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)