Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
chore(tools): use explicit environment variables in testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 30, 2021
1 parent d4f10f6 commit f436d3d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tools/scripts/jest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
# - https://jestjs.io/docs/next/cli
# - https://github.com/hipstersmoothie/jest-github-reporter

# 1. Clear terminal
# 2. Source environment variables
# 3. Run Jest
# 1. Set test environment variables
export NODE_ENV=test
export NODE_OPTIONS=''
export TS_NODE_PROJECT="$PROJECT_CWD/tsconfig.test.json"

# 2. Clear terminal
clear
node $PROJECT_CWD/tools/cli/loadenv.cjs -c test

# 3. Run test suites with Jest
jest -i --passWithNoTests --testLocationInResults $@

0 comments on commit f436d3d

Please sign in to comment.