Skip to content

Commit 19a71ef

Browse files
author
magne
committed
chore: fix tests setup and update workflows
1 parent 8f917d0 commit 19a71ef

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [22.x]
18+
node-version: [18.x, 20.x, 21.x, 22.x, 23.x]
1919
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2020

2121
services:

.vscode/launch.json

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

test/e2e/management.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("Management", () => {
1717
management.close()
1818
})
1919

20-
test("create a queue through the management", async () => {
20+
test.skip("create a queue through the management", async () => {
2121
const queue = management.queue("test-coda").exclusive(true).autoDelete(true).declare()
2222

2323
expect(await existsQueue(queue.name)).to.eql(true)

test/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
process.env.NODE_ENV = "test"

vitest.config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ export default defineConfig({
44
test: {
55
fileParallelism: false,
66
testTimeout: 5000,
7+
sequence: {
8+
setupFiles: "list",
9+
},
10+
setupFiles: ["./test/setup.ts", "./test/index.ts"],
11+
env: {
12+
NODE_ENV: "test",
13+
},
714
expect: {
815
poll: { timeout: 1500, interval: 5 },
916
},

0 commit comments

Comments
 (0)