Skip to content

Commit

Permalink
Add vitest.config.ts, update initial.test.ts, and add jsdom dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Mar 20, 2024
1 parent 1d1275b commit a72040a
Show file tree
Hide file tree
Showing 5 changed files with 1,366 additions and 4,529 deletions.
22 changes: 10 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
// bash: https://docs.microsoft.com/it-it/windows/dev-environment/javascript/nodejs-on-wsl
"version": "0.2.0",
"configurations": [
// jest debug
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--runInBand"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
"type": "node",
"request": "launch",
"name": "Debug Current Test File",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"smartStep": true,
"console": "integratedTerminal"
}
]
}
2 changes: 1 addition & 1 deletion initial.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test } from 'vitest';
import { expect, test } from 'vitest';
import { GameWindowManager } from './src';

test('aaaa', async () => {
Expand Down
Loading

0 comments on commit a72040a

Please sign in to comment.