Skip to content

Commit 96dd98c

Browse files
chore: Update TypeScript version and improve test imports
- Updated TypeScript version from `^5.0.0` to `5.8.3` in both `package.json` and `package-lock.json` for better performance and compatibility. - Updated the version of `@vitest/pretty-format` from `3.1.3` to `3.1.4` in `package-lock.json` to ensure the latest features and fixes are included. - Modified the import statement in the test file `index.test.ts` for consistency and clarity. These changes enhance the development environment by ensuring up-to-date dependencies and improving code readability in tests.
1 parent 075310a commit 96dd98c

4 files changed

Lines changed: 34 additions & 7 deletions

File tree

workers/main/package-lock.json

Lines changed: 30 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workers/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@vitest/coverage-v8": "3.1.3",
1212
"c8": "10.1.3",
1313
"ts-node": "^10.9.1",
14-
"typescript": "^5.0.0",
14+
"typescript": "5.8.3",
1515
"vite": "6.3.5",
1616
"vitest": "3.1.3"
1717
}

workers/main/src/__tests__/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { describe, it, expect} from 'vitest';
1+
import { describe, expect, it } from 'vitest';
2+
23
import { run } from '../index';
34

45
describe('run', () => {

workers/main/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
* @returns {Promise<boolean>} Returns true when the worker completes successfully.
44
*/
55
export async function run() {
6-
return true;
6+
return await Promise.resolve(true);
77
}

0 commit comments

Comments
 (0)