Skip to content

Commit 1038049

Browse files
committed
migrate events e2e tests to Deno
1 parent 1e87228 commit 1038049

18 files changed

Lines changed: 3696 additions & 3277 deletions

tests/bun/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.PHONY: all
2-
all: setup .WAIT all/events all/trusted-proxy all/trusted-proxy-custom-header all/untrusted-proxy
2+
all: all/events # all/trusted-proxy all/trusted-proxy-custom-header all/untrusted-proxy
33
@true
44

55
all/%: FORCE start/% .WAIT test/% .WAIT clean/%
@@ -22,9 +22,4 @@ lint:
2222
lint/fix:
2323
bunx ts-standard --fix
2424

25-
setup: node_modules
26-
27-
node_modules:
28-
$(DOCKER) run --rm -v $$PWD:/app -w /app docker.io/oven/bun bun install
29-
3025
FORCE:

tests/bun/bun.lockb

-131 KB
Binary file not shown.

tests/bun/deno.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"imports": {
3+
"@std/expect": "jsr:@std/expect@1",
4+
"@faker-js/faker": "npm:@faker-js/faker@8",
5+
"@clickhouse/client-web": "npm:@clickhouse/client-web@1"
6+
},
7+
"compilerOptions": {
8+
"lib": ["deno.ns", "dom"]
9+
}
10+
}

tests/bun/deno.lock

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

tests/bun/events/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test:
1818
-f ./docker-compose.test.yml \
1919
up \
2020
--abort-on-container-exit \
21-
--exit-code-from bun
21+
--exit-code-from deno
2222

2323
.PHONY: clean
2424
clean:

tests/bun/events/docker-compose.env.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ services:
88
default:
99
aliases:
1010
- prisme.localhost
11-
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
2-
bun:
3-
image: docker.io/oven/bun
4-
command: sh -c "bun install && cd ./events && exec bun test"
5-
working_dir: /data
2+
deno:
3+
image: docker.io/denoland/deno:2.5.2
4+
command: deno test --allow-net
5+
working_dir: /data/events
66
volumes:
77
- ..:/data

0 commit comments

Comments
 (0)