Skip to content

Commit

Permalink
test(seed): always bust cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatOneBro committed May 11, 2024
1 parent 436298b commit 8ad3add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/server/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test:seed:parallel": {
"dependsOn": ["build"],
"outputs": ["coverage/**"],
"inputs": ["src/**/*.tsx", "src/**/*.ts"]
"inputs": ["src/**/*.tsx", "src/**/*.ts"],
"env": ["SHOULD_RUN_SEED_TEST"]
}
}
}
2 changes: 1 addition & 1 deletion scripts/test-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -x

# Seed the database before testing
# This is the parallel implementation so it's faster
time npx turbo run test:seed:parallel --filter=./packages/server -- --coverage
SHOULD_RUN_SEED_TEST=$(date) time npx turbo run test:seed:parallel --filter=./packages/server -- --coverage
cp "packages/server/coverage/seed/parallel/coverage-final.json" "coverage/packages/coverage-server-seed-parallel.json"

# Test
Expand Down

0 comments on commit 8ad3add

Please sign in to comment.