Skip to content

Commit

Permalink
fix(Deno): fix process interoperability after v2.4.2 (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel authored Aug 8, 2024
1 parent 2804b41 commit 0eb5b9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/services/assert.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import type { ProcessAssertionOptions } from '../@types/assert.js';
import { AssertionError } from 'node:assert';
import process, { cwd as processCWD, env } from 'node:process';
import process from 'node:process';
import path from 'node:path';
import { findFile } from '../parsers/find-file-from-stack.js';
import { parseResultType } from '../parsers/assert.js';

import { indentation } from '../configs/indentation.js';
import { format } from './format.js';
import { Write } from './write.js';

const cwd = processCWD();
const cwd = process.cwd();
const regexFile = /file:(\/\/)?/;

const assertProcessor = () => {
const isPoku = typeof env?.FILE === 'string' && env?.FILE.length > 0;
const FILE = env.FILE;
const isPoku =
typeof process.env?.FILE === 'string' && process.env?.FILE.length > 0;
const FILE = process.env.FILE;

let preIdentation = '';

Expand Down

0 comments on commit 0eb5b9f

Please sign in to comment.