Skip to content

Commit

Permalink
feat: moving unit testing over to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 8, 2023
1 parent e2b5408 commit 46e5286
Show file tree
Hide file tree
Showing 34 changed files with 1,917 additions and 3,782 deletions.
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": [
"@readme/eslint-config",
"@readme/eslint-config/typescript",
"@readme/eslint-config/testing"
"@readme/eslint-config/testing/vitest"
],
"root": true,
"parserOptions": {
Expand All @@ -18,7 +18,11 @@
"max-classes-per-file": "off",
"no-param-reassign": "off",
"no-underscore-dangle": ["error", { "allow": ["_boundary"] }],
"spaced-comment": "off"
"spaced-comment": "off",

"unicorn/prefer-node-protocol": "error",

"vitest/require-hook": "off"
},
"env": {
"browser": true
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
build:
context: .
dockerfile: integrations/node.Dockerfile
command: 'npx jest src/integration.test.ts'
command: 'npx vitest run src/integration.test.ts'
environment:
- HTTPBIN=true
- INTEGRATION_CLIENT=node
Expand All @@ -48,7 +48,7 @@ services:
build:
context: .
dockerfile: integrations/php.Dockerfile
command: 'npx jest src/integration.test.ts'
command: 'npx vitest run src/integration.test.ts'
environment:
- HTTPBIN=true
- INTEGRATION_CLIENT=php
Expand All @@ -73,7 +73,7 @@ services:
build:
context: .
dockerfile: integrations/shell.Dockerfile
command: 'npx jest src/integration.test.ts'
command: 'npx vitest run src/integration.test.ts'
environment:
- HTTPBIN=true
- INTEGRATION_CLIENT=shell
Expand All @@ -85,7 +85,7 @@ services:
build:
context: .
dockerfile: integrations/csharp.Dockerfile
command: 'npx jest src/integration.test.ts'
command: 'npx vitest run src/integration.test.ts'
environment:
- HTTPBIN=true
- INTEGRATION_CLIENT=csharp
Expand All @@ -97,7 +97,7 @@ services:
build:
context: .
dockerfile: integrations/c.Dockerfile
command: 'npx jest src/integration.test.ts'
command: 'npx vitest run src/integration.test.ts'
environment:
- HTTPBIN=true
- INTEGRATION_CLIENT=c
Expand All @@ -109,7 +109,7 @@ services:
build:
context: .
dockerfile: integrations/go.Dockerfile
command: 'npx jest src/integration.test.ts'
command: 'npx vitest run src/integration.test.ts'
environment:
- HTTPBIN=true
- INTEGRATION_CLIENT=go
Expand Down
11 changes: 0 additions & 11 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 46e5286

Please sign in to comment.