vitest 0.10.3 → 0.10.4

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,5 +1,5 @@
1
1
  import { g as globalApis } from './chunk-constants.54c46a47.js';
2
- import { i as index } from './vendor-entry.2f0617df.js';
2
+ import { i as index } from './vendor-entry.a660e61c.js';
3
3
  import 'url';
4
4
  import './chunk-utils-global.eb31f3da.js';
5
5
  import 'tty';
@@ -23,7 +23,7 @@ import { e as stripAnsi, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as
23
23
  import MagicString from './chunk-magic-string.d5e0e473.js';
24
24
  import { p as prompts } from './vendor-index.405e58ef.js';
25
25
 
26
- var version = "0.10.3";
26
+ var version = "0.10.4";
27
27
 
28
28
  function stripFinalNewline(input) {
29
29
  const LF = typeof input === 'string' ? '\n' : '\n'.charCodeAt();
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import { p as picocolors } from './chunk-utils-global.eb31f3da.js';
3
- import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.f88b9527.js';
3
+ import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.92c54acc.js';
4
4
  import 'tty';
5
5
  import 'local-pkg';
6
6
  import 'path';
package/dist/entry.js CHANGED
@@ -1,4 +1,4 @@
1
- export { r as run } from './vendor-entry.2f0617df.js';
1
+ export { r as run } from './vendor-entry.a660e61c.js';
2
2
  import 'fs';
3
3
  import './chunk-utils-global.eb31f3da.js';
4
4
  import 'tty';
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.f88b9527.js';
1
+ export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.92c54acc.js';
2
2
  export { V as VitestRunner } from './chunk-runtime-mocker.89015cf8.js';
3
3
  import 'buffer';
4
4
  import 'path';
@@ -374,8 +374,8 @@ var jsdom = {
374
374
  var happy = {
375
375
  name: "happy-dom",
376
376
  async setup(global) {
377
- const { Window } = await importModule("happy-dom");
378
- const win = new Window();
377
+ const { Window, GlobalWindow } = await importModule("happy-dom");
378
+ const win = new (GlobalWindow || Window)();
379
379
  const keys = getWindowKeys(global, win);
380
380
  const overrideObject = /* @__PURE__ */ new Map();
381
381
  for (const key of keys) {
@@ -419,7 +419,7 @@ async function setupGlobalEnv(config) {
419
419
  globalSetup = true;
420
420
  setupConsoleLogSpy();
421
421
  if (config.globals)
422
- (await import('./chunk-integrations-globals.12eb8517.js')).registerApiGlobally();
422
+ (await import('./chunk-integrations-globals.6bdc721a.js')).registerApiGlobally();
423
423
  }
424
424
  function setupDefines(defines) {
425
425
  for (const key in defines)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "0.10.3",
4
+ "version": "0.10.4",
5
5
  "description": "A blazing fast unit test framework powered by Vite",
6
6
  "keywords": [
7
7
  "vite",
@@ -93,7 +93,7 @@
93
93
  "@types/node": "^17.0.31",
94
94
  "@types/prompts": "^2.4.0",
95
95
  "@types/sinonjs__fake-timers": "^8.1.2",
96
- "@vitest/ui": "0.10.3",
96
+ "@vitest/ui": "0.10.4",
97
97
  "birpc": "^0.2.2",
98
98
  "c8": "^7.11.2",
99
99
  "cac": "^6.7.12",
@@ -104,7 +104,7 @@
104
104
  "fast-glob": "^3.2.11",
105
105
  "find-up": "^6.3.0",
106
106
  "flatted": "^3.2.5",
107
- "happy-dom": "^2.55.0",
107
+ "happy-dom": "^3.1.1",
108
108
  "jsdom": "^19.0.0",
109
109
  "log-update": "^5.0.1",
110
110
  "magic-string": "^0.26.1",
@@ -120,7 +120,7 @@
120
120
  "source-map-js": "^1.0.2",
121
121
  "strip-ansi": "^7.0.1",
122
122
  "typescript": "^4.6.4",
123
- "vite-node": "0.10.3",
123
+ "vite-node": "0.10.4",
124
124
  "ws": "^8.6.0"
125
125
  },
126
126
  "engines": {