-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from fourTheorem/vitest
Use vitest for unit tests
- Loading branch information
Showing
12 changed files
with
5,519 additions
and
9,768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
process.env.EXAMPLE_KEY_1 = 'test' | ||
|
||
import envs from '../envs' | ||
import { test } from 'tap' | ||
import { test, assert } from 'vitest' | ||
|
||
test('envs retrieves environment variables if available', async (t) => { | ||
t.equal(envs.EXAMPLE_KEY_1, 'test') | ||
test('envs retrieves environment variables if available', async () => { | ||
assert.equal(envs.EXAMPLE_KEY_1, 'test') | ||
}) | ||
|
||
test('envs throws an error if an environment variable is missing', async (t) => { | ||
t.throws(() => envs.EXAMPLE_KEY_2) | ||
test('envs throws an error if an environment variable is missing', async () => { | ||
assert.throws(() => envs.EXAMPLE_KEY_2) | ||
}) |
1 change: 0 additions & 1 deletion
1
transcript-orchestration/functions/mock-utils/lambda-context.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
transcript-orchestration/functions/s3-keys/tests/unit/app.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.