Skip to content

Commit ae7560d

Browse files
committed
Add integration test for signals.
1 parent c47356c commit ae7560d

File tree

17 files changed

+3917
-80
lines changed

17 files changed

+3917
-80
lines changed

devbox.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
"format:check": "prettier -c \"!**/*.json\" .",
1313
"test": [
1414
"cd tests/",
15+
"./run-tests.sh",
16+
"cd ../integration-tests",
17+
"./run-tests.sh"
18+
],
19+
"test:unit": [
20+
"cd tests/",
21+
"./run-tests.sh"
22+
],
23+
"test:integration": [
24+
"cd integration-tests/",
1525
"./run-tests.sh"
1626
]
1727
}

devbox.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"lockfile_version": "1",
33
"packages": {
44
"github:NixOS/nixpkgs/nixpkgs-unstable": {
5-
"last_modified": "2025-06-01T15:36:18Z",
6-
"resolved": "github:NixOS/nixpkgs/5929de975bcf4c7c8d8b5ca65c8cd9ef9e44523e?lastModified=1748792178&narHash=sha256-BHmgfHlCJVNisJShVaEmfDIr%2FIp58i%2F4oFGlD1iK6lk%3D"
5+
"last_modified": "2025-06-02T09:36:13Z",
6+
"resolved": "github:NixOS/nixpkgs/e4b09e47ace7d87de083786b404bf232eb6c89d8?lastModified=1748856973&narHash=sha256-RlTsJUvvr8ErjPBsiwrGbbHYW8XbB%2Foek0Gi78XdWKg%3D"
77
},
88
"github:gren-lang/nix/0.5.4": {
99
"last_modified": "2025-03-24T10:35:41Z",

integration-tests/http-client/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
app: Makefile gren.json node_modules
2-
npx gren make --optimize src/Main.gren --output=bin/app
2+
gren make --optimize src/Main.gren --output=bin/app
33

44
.PHONY: test
55
test: app node_modules

integration-tests/http-client/package-lock.json

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

integration-tests/http-client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
},
55
"dependencies": {
66
"clet": "^1.0.1",
7-
"gren-lang": "^0.5.2",
87
"mocha": "^10.2.0",
98
"mockttp": "^3.10.0"
109
}

integration-tests/http-server/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
app: Makefile gren.json src/Main.gren node_modules
2-
npx gren make --optimize src/Main.gren --output=app
2+
gren make --optimize src/Main.gren --output=app
33

44
.PHONY: test
55
test: app node_modules

integration-tests/http-server/package-lock.json

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

integration-tests/http-server/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
},
55
"dependencies": {
66
"clet": "^1.0.1",
7-
"gren-lang": "^0.5.2",
87
"mocha": "^10.2.0",
98
"supertest": "^7.0.0"
109
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
app
2+
.gren
3+
node_modules/

integration-tests/signals/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
app: Makefile gren.json src/Main.gren
2+
gren make --optimize src/Main.gren --output=bin/app
3+
4+
.PHONY: test
5+
test: app node_modules
6+
npm test
7+
8+
node_modules: package.json package-lock.json
9+
npm install
10+
11+
.PHONY: clean
12+
clean:
13+
rm -rf .gren
14+
rm -rf node_modules
15+
rm bin/app

0 commit comments

Comments
 (0)