Skip to content

Commit

Permalink
chore: add teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Jan 10, 2024
1 parent d27e585 commit 0d2f1f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
{
"label": "Clear",
"command": "docker compose -f .dev/compose.yml down -v",
"command": "npm run teardown",
"type": "shell",
"isBackground": true,
"presentation": {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
"test:ci": "npm run build && jest -i",
"test:local": "npm run build --workspaces && . .dev/scripts/testSetup.sh && jest",
"test:local:ferretdb": "npm run build && . .dev/scripts/testSetupFerret.sh && jest -w 2",
"generate:connectorConfigSchema": "npx ts-json-schema-generator -p ./src/jsonSchemas/connectorConfig.ts -o ./src/jsonSchemas/connectorConfig.json -t \"ConnectorConfig\" --no-top-ref && prettier -w src/jsonSchemas/connectorConfig.json"
"generate:connectorConfigSchema": "npx ts-json-schema-generator -p ./src/jsonSchemas/connectorConfig.ts -o ./src/jsonSchemas/connectorConfig.json -t \"ConnectorConfig\" --no-top-ref && prettier -w src/jsonSchemas/connectorConfig.json",
"teardown": "npm run teardown:backbone && npm run teardown:test-env && npm run teardown:testconnectors",
"teardown:backbone": "docker compose -p connector-test-backbone --env-file .dev/compose.backbone.env -f .dev/compose.backbone.yml down -v",
"teardown:test-env": "docker compose -p connector-tests -f test/compose.yml down -v",
"teardown:testconnectors": "docker compose -f .dev/compose.yml down -v"
},
"jest": {
"maxWorkers": 2,
Expand Down

0 comments on commit 0d2f1f7

Please sign in to comment.