Skip to content

Commit 43e3e93

Browse files
committed
fix test
1 parent 612356c commit 43e3e93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/node-lambda.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const fs = require('fs-extra')
1010
const spawn = require('child_process').spawn
1111
const execSync = require('child_process').execSync
1212
const nodeLambdaPath = path.join(__dirname, '..', 'bin', 'node-lambda')
13+
const stripAnsi = require('strip-ansi')
1314

1415
const removeDotenvLog = (str) => {
15-
// eslint-disable-next-line no-control-regex
16-
return str.replace(/^\u001b\[38;5;142m\[dotenvx@.+\]injectingenv\(.+\)from.env\u001b\[39m/, '')
16+
return stripAnsi(str).replace(/^.*?injectingenv\(\d+\)from\.env(\u00B7dotenvx@[\d.]+)?/, '')
1717
}
1818

1919
/* global before, after, describe, it */

0 commit comments

Comments
 (0)