Skip to content

Commit

Permalink
fix(tester): throw error by vitest@0.34.1
Browse files Browse the repository at this point in the history
process.env.NODE_ENV = process.env.NODE_ENV || "TEST"
-> "TEST" = "TEST" || "TEST"

next version will fixed
vitest-dev/vitest#3957
  • Loading branch information
deot committed Aug 16, 2023
1 parent 187282a commit b68e5d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/index/__tests__/index.spec.ts
@@ -1,5 +1,6 @@
import { Utils, Logger, Shell, Command, Builder, Releaser, Tester } from '@deot/dev';

// @vitest-environment node
describe('index.ts', () => {
it('any', () => {
expect(typeof Builder).toBe('object');
Expand Down
3 changes: 2 additions & 1 deletion packages/tester/__tests__/index.spec.ts
@@ -1,7 +1,8 @@
import * as path from 'node:path';
import { Locals, Shell } from '@deot/dev-shared';
import * as Tester from '@deot/dev-tester';
import * as path from 'node:path';

// @vitest-environment node
describe('index', () => {
it('config', () => {
const it = Locals.impl();
Expand Down

0 comments on commit b68e5d9

Please sign in to comment.