@devvit/tsconfig 0.12.7-next-2025-12-15-21-49-16-ffbcd4ee6.0 → 0.12.7-next-2025-12-16-01-25-33-548943dfa.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,17 @@
1
1
  import { defineConfig } from 'vitest/config';
2
- /** to-do: DX-5962 @import {UserConfig, UserWorkspaceConfig} from 'vitest' */
2
+ /** @import { ViteUserConfig, UserWorkspaceConfig } from 'vitest/config' */
3
3
 
4
- /** @type {import('vitest').UserConfig} */
4
+ /** @type {ViteUserConfig['test']} */
5
5
  const baseConfig = {
6
6
  // Enables import-less tests for drop-in jest compatibility
7
7
  globals: true,
8
+ pool: 'threads',
8
9
  environment: 'node',
9
10
  exclude: ['dist', 'node_modules'],
10
11
  coverage: {
11
12
  exclude: ['dist', 'node_modules'],
12
13
  },
14
+ clearMocks: true,
13
15
  restoreMocks: true,
14
16
  // Automatically retry any test failures once.
15
17
  // Ideally we could scope this down to timeout failures only, but that doesn't seem currently possible.
@@ -20,13 +22,13 @@ const baseConfig = {
20
22
 
21
23
  const DOM_TEST_FILE_PATTERN = '**/*.ui.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}';
22
24
 
23
- export const devvitVitestConfig = /** @type {import('vitest').UserWorkspaceConfig} */ (
25
+ export const devvitVitestConfig = /** @type {UserWorkspaceConfig} */ (
24
26
  defineConfig({
25
27
  test: { ...baseConfig, exclude: [...(baseConfig.exclude ?? []), DOM_TEST_FILE_PATTERN] },
26
28
  })
27
29
  );
28
30
 
29
- export const devvitVitestDomConfig = /** @type {import('vitest').UserWorkspaceConfig} */ (
31
+ export const devvitVitestDomConfig = /** @type {UserWorkspaceConfig} */ (
30
32
  defineConfig({
31
33
  test: { ...baseConfig, environment: 'jsdom', include: [DOM_TEST_FILE_PATTERN] },
32
34
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/tsconfig",
3
- "version": "0.12.7-next-2025-12-15-21-49-16-ffbcd4ee6.0",
3
+ "version": "0.12.7-next-2025-12-16-01-25-33-548943dfa.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "c8": "7.11.3",
23
23
  "eslint": "9.11.1",
24
24
  "typescript": "5.8.3",
25
- "vitest": "1.6.1"
25
+ "vitest": "4.0.15"
26
26
  },
27
- "gitHead": "92ebe381eed08c7aeb37a5ab03dd8c2045aded8e"
27
+ "gitHead": "bf6d4a1e497f8df6626f4b9495b15787bd6fb643"
28
28
  }