Socket
Socket
Sign inDemoInstall

vitest

Package Overview
Dependencies
9
Maintainers
1
Versions
356
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

dist/chai.d.ts

16

dist/cli.js

@@ -1,2 +0,2 @@

import { join } from 'path';
var _a;
import minimist from 'minimist';

@@ -10,4 +10,4 @@ import c from 'picocolors';

},
string: ['root'],
boolean: ['update'],
string: ['root', 'config'],
boolean: ['update', 'dev'],
unknown(name) {

@@ -22,9 +22,9 @@ if (name[0] === '-') {

});
// TODO: load config, CLI
await run({
rootDir: argv.root || join(process.cwd(), 'test'),
updateSnapshot: argv.update,
});
// @ts-expect-error
const server = (_a = process === null || process === void 0 ? void 0 : process.__vite_node__) === null || _a === void 0 ? void 0 : _a.server;
const viteConfig = (server === null || server === void 0 ? void 0 : server.config) || {};
const testOptions = viteConfig.test || {};
await run(Object.assign(Object.assign({}, testOptions), { updateSnapshot: argv.update, rootDir: argv.root || process.cwd() }));
function help() {
log('Help: finish help');
}
export * from './types';
export * from './suite';
export { assert, should, expect } from 'chai';
declare global {
namespace Chai {
interface Assertion {
toMatchSnapshot(message?: string): Assertion;
matchSnapshot(message?: string): Assertion;
}
interface ExpectStatic {
addSnapshotSerializer: import('pretty-format').Plugin;
}
}
}
export * from './config';
export * from './chai';
export * from './types';
export * from './suite';
export { assert, should, expect } from 'chai';
export * from './config';
export * from './chai';

@@ -79,2 +79,3 @@ import { relative } from 'path';

cwd: options.rootDir,
ignore: options.excludes || ['/node_modules/', '/dist/'],
});

@@ -81,0 +82,0 @@ if (!files.length) {

@@ -1,5 +0,7 @@

export interface Options {
rootDir?: string;
export interface UserOptions {
includes?: string[];
excludes?: string[];
}
export interface Options extends UserOptions {
rootDir?: string;
updateSnapshot?: boolean;

@@ -6,0 +8,0 @@ }

{
"name": "vitest",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",

@@ -41,3 +41,3 @@ "description": "",

"release": "bumpp --commit --push --tag && pnpm publish",
"test": "npx vite-node src/cli.ts --",
"test": "node bin/vitest.mjs --dev",
"test:update": "nr test -u"

@@ -48,3 +48,2 @@ },

"@antfu/ni": "^0.11.0",
"@types/chai": "^4.2.22",
"@types/minimist": "^1.2.2",

@@ -59,2 +58,3 @@ "@types/node": "^16.11.11",

"dependencies": {
"@types/chai": "^4.2.22",
"@jest/test-result": "^27.4.2",

@@ -67,4 +67,4 @@ "chai": "^4.3.4",

"picocolors": "^1.0.0",
"vite-node": "v0.1.8"
"vite-node": "^0.1.9"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc