-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sample environment configuration and enhance tests with connectio…
…n validation Signed-off-by: worksofliam <[email protected]>
- Loading branch information
1 parent
61a5413
commit eb79789
Showing
3 changed files
with
11 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
VITE_SERVER= | ||
VITE_DB_USER= | ||
VITE_DB_PASS= | ||
VITE_DB_PORT=22 |
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,6 +1,10 @@ | ||
// sum.test.js | ||
import { expect, test } from 'vitest' | ||
import { getConnection } from './state' | ||
import exp from 'constants'; | ||
|
||
test('adds 1 + 2 to equal 3', () => { | ||
expect(1+2).toBe(3) | ||
const conn = getConnection(); | ||
expect(conn).toBeDefined(); | ||
expect(1+2).toBe(3); | ||
}) |
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