vitest 0.5.4 → 0.5.7

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.
Files changed (44) hide show
  1. package/dist/chunk-api-setup.ab3a8330.js +4444 -0
  2. package/dist/chunk-constants.a1a50d89.js +32 -0
  3. package/dist/chunk-defaults.8ca84d7b.js +1833 -0
  4. package/dist/chunk-install-pkg.7ce2052a.js +1643 -0
  5. package/dist/chunk-integrations-globals.9bda85f1.js +24 -0
  6. package/dist/chunk-magic-string.6c8f4a10.js +1361 -0
  7. package/dist/chunk-runtime-chain.d86ab074.js +5946 -0
  8. package/dist/chunk-runtime-hooks.aef17670.js +42 -0
  9. package/dist/chunk-runtime-rpc.1832c38c.js +6 -0
  10. package/dist/chunk-utils-base.39767f3e.js +225 -0
  11. package/dist/chunk-utils-source-map.be2b14e2.js +3407 -0
  12. package/dist/chunk-vite-node-externalize.7a4060a6.js +10515 -0
  13. package/dist/chunk-vite-node-utils.952694b8.js +9451 -0
  14. package/dist/cli.js +13 -15
  15. package/dist/config.cjs +1 -1
  16. package/dist/config.d.ts +6 -0
  17. package/dist/config.js +1 -1
  18. package/dist/entry.js +26 -16
  19. package/dist/index.d.ts +6 -0
  20. package/dist/index.js +5 -5
  21. package/dist/node.d.ts +6 -0
  22. package/dist/node.js +11 -11
  23. package/dist/{_commonjsHelpers-c9e3b764.js → vendor-_commonjsHelpers.91d4f591.js} +1 -1
  24. package/dist/vendor-index.665a6ba4.js +5708 -0
  25. package/dist/vendor-index.76be1f4d.js +187 -0
  26. package/dist/vendor-index.f6809970.js +1111 -0
  27. package/dist/worker.js +5 -5
  28. package/package.json +3 -3
  29. package/dist/cli-api-682b9694.js +0 -10512
  30. package/dist/client-4904f549.js +0 -9451
  31. package/dist/constants-c746dc5b.js +0 -32
  32. package/dist/diff-d3ddd21a.js +0 -1833
  33. package/dist/globals-75ad6839.js +0 -24
  34. package/dist/index-013ecdfe.js +0 -225
  35. package/dist/index-072c45fd.js +0 -5708
  36. package/dist/index-0996637f.js +0 -1111
  37. package/dist/index-0bdb518d.js +0 -42
  38. package/dist/index-1488b423.js +0 -187
  39. package/dist/index-1945a7c3.js +0 -1643
  40. package/dist/magic-string.es-94000aea.js +0 -1361
  41. package/dist/rpc-377d999b.js +0 -6
  42. package/dist/setup-047a81dd.js +0 -4444
  43. package/dist/source-map-b4f7fd10.js +0 -3407
  44. package/dist/vi-a4ac529d.js +0 -5946
package/dist/index.d.ts CHANGED
@@ -867,6 +867,12 @@ interface InlineConfig {
867
867
  */
868
868
  fallbackCJS?: boolean;
869
869
  };
870
+ /**
871
+ * Base directory to scan for the test files
872
+ *
873
+ * @default `config.root`
874
+ */
875
+ dir?: string;
870
876
  /**
871
877
  * Register apis globally
872
878
  *
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './vi-a4ac529d.js';
2
- export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './index-0bdb518d.js';
1
+ export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './chunk-runtime-chain.d86ab074.js';
2
+ export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './chunk-runtime-hooks.aef17670.js';
3
3
  export { fn, isMockFunction, spies, spyOn } from './jest-mock.js';
4
4
  export { assert, default as chai, should } from 'chai';
5
5
  import 'util';
6
- import './index-013ecdfe.js';
6
+ import './chunk-utils-base.39767f3e.js';
7
7
  import 'tty';
8
8
  import 'local-pkg';
9
- import './source-map-b4f7fd10.js';
10
- import './_commonjsHelpers-c9e3b764.js';
9
+ import './chunk-utils-source-map.be2b14e2.js';
10
+ import './vendor-_commonjsHelpers.91d4f591.js';
11
11
  import 'tinyspy';
12
12
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OyJ9
package/dist/node.d.ts CHANGED
@@ -572,6 +572,12 @@ interface InlineConfig {
572
572
  */
573
573
  fallbackCJS?: boolean;
574
574
  };
575
+ /**
576
+ * Base directory to scan for the test files
577
+ *
578
+ * @default `config.root`
579
+ */
580
+ dir?: string;
575
581
  /**
576
582
  * Register apis globally
577
583
  *
package/dist/node.js CHANGED
@@ -1,10 +1,10 @@
1
- export { V as VitestPlugin, c as createVitest, s as startVitest } from './cli-api-682b9694.js';
1
+ export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.7a4060a6.js';
2
2
  import 'buffer';
3
3
  import 'path';
4
4
  import 'child_process';
5
5
  import 'process';
6
- import './index-0996637f.js';
7
- import './_commonjsHelpers-c9e3b764.js';
6
+ import './vendor-index.f6809970.js';
7
+ import './vendor-_commonjsHelpers.91d4f591.js';
8
8
  import 'fs';
9
9
  import 'assert';
10
10
  import 'events';
@@ -12,21 +12,21 @@ import 'stream';
12
12
  import 'util';
13
13
  import 'url';
14
14
  import 'os';
15
- import './index-013ecdfe.js';
15
+ import './chunk-utils-base.39767f3e.js';
16
16
  import 'tty';
17
17
  import 'local-pkg';
18
- import './index-1488b423.js';
18
+ import './vendor-index.76be1f4d.js';
19
19
  import 'vite';
20
- import './constants-c746dc5b.js';
21
- import './client-4904f549.js';
20
+ import './chunk-constants.a1a50d89.js';
21
+ import './chunk-vite-node-utils.952694b8.js';
22
22
  import 'module';
23
23
  import 'vm';
24
- import './diff-d3ddd21a.js';
25
- import './source-map-b4f7fd10.js';
24
+ import './chunk-defaults.8ca84d7b.js';
25
+ import './chunk-utils-source-map.be2b14e2.js';
26
26
  import 'perf_hooks';
27
27
  import 'worker_threads';
28
28
  import 'tinypool';
29
- import './magic-string.es-94000aea.js';
29
+ import './chunk-magic-string.6c8f4a10.js';
30
30
  import 'readline';
31
- import './index-072c45fd.js';
31
+ import './vendor-index.665a6ba4.js';
32
32
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS5qcyIsInNvdXJjZXMiOltdLCJzb3VyY2VzQ29udGVudCI6W10sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==
@@ -9,4 +9,4 @@ function commonjsRequire (path) {
9
9
  }
10
10
 
11
11
  export { commonjsRequire as a, commonjsGlobal as c, getDefaultExportFromCjs as g };
12
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2NvbW1vbmpzSGVscGVycy1jOWUzYjc2NC5qcyIsInNvdXJjZXMiOltdLCJzb3VyY2VzQ29udGVudCI6W10sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7In0=
12
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVuZG9yLV9jb21tb25qc0hlbHBlcnMuOTFkNGY1OTEuanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OyJ9