@@ -144,7 +144,7 @@ describe("defaults", () => {
144
144
145
145
describe ( "defaults.options" , ( ) => {
146
146
it ( "should use the default options" , ( ) => {
147
- chaiExec . defaults . options = { env : { ...process . env , foo : "Hello" , bar : "world" } } ;
147
+ chaiExec . defaults . options = { env : { ...process . env , NODE_OPTIONS : "" , foo : "Hello" , bar : "world" } } ;
148
148
let cli = chaiExec ( "test/fixtures/bin/echo-env foo bar" ) ;
149
149
150
150
cli . command . should . equal ( "test/fixtures/bin/echo-env" ) ;
@@ -155,7 +155,7 @@ describe("defaults", () => {
155
155
156
156
it ( "should use the default command and options" , ( ) => {
157
157
chaiExec . defaults . command = "test/fixtures/bin/echo-env" ;
158
- chaiExec . defaults . options = { env : { ...process . env , foo : "Hello" , bar : "world" } } ;
158
+ chaiExec . defaults . options = { env : { ...process . env , NODE_OPTIONS : "" , foo : "Hello" , bar : "world" } } ;
159
159
let cli = chaiExec ( "foo bar" ) ;
160
160
161
161
cli . command . should . equal ( "test/fixtures/bin/echo-env" ) ;
@@ -166,7 +166,7 @@ describe("defaults", () => {
166
166
it ( "should use the default command, args, and options" , ( ) => {
167
167
chaiExec . defaults . command = "test/fixtures/bin/echo-env" ;
168
168
chaiExec . defaults . args = "foo bar" ;
169
- chaiExec . defaults . options = { env : { ...process . env , foo : "Hello" , bar : "world" } } ;
169
+ chaiExec . defaults . options = { env : { ...process . env , NODE_OPTIONS : "" , foo : "Hello" , bar : "world" } } ;
170
170
let cli = chaiExec ( ) ;
171
171
172
172
cli . command . should . equal ( "test/fixtures/bin/echo-env" ) ;
@@ -176,7 +176,7 @@ describe("defaults", () => {
176
176
177
177
it ( "should append args to the default args, and options" , ( ) => {
178
178
chaiExec . defaults . args = [ "foo" , "bar" ] ;
179
- chaiExec . defaults . options = { env : { ...process . env , foo : "Hello" , bar : "world" , biz : "AAA" , baz : "BBB" } } ;
179
+ chaiExec . defaults . options = { env : { ...process . env , NODE_OPTIONS : "" , foo : "Hello" , bar : "world" , biz : "AAA" , baz : "BBB" } } ;
180
180
let cli = chaiExec ( [ "test/fixtures/bin/echo-env" , "biz" , "baz" ] ) ;
181
181
182
182
cli . command . should . equal ( "test/fixtures/bin/echo-env" ) ;
@@ -187,7 +187,7 @@ describe("defaults", () => {
187
187
it ( "should append args to the default command, args, and options" , ( ) => {
188
188
chaiExec . defaults . command = "test/fixtures/bin/echo-env" ;
189
189
chaiExec . defaults . args = "foo bar" ;
190
- chaiExec . defaults . options = { env : { ...process . env , foo : "Hello" , bar : "world" , biz : "AAA" , baz : "BBB" } } ;
190
+ chaiExec . defaults . options = { env : { ...process . env , NODE_OPTIONS : "" , foo : "Hello" , bar : "world" , biz : "AAA" , baz : "BBB" } } ;
191
191
let cli = chaiExec ( "biz baz" ) ;
192
192
193
193
cli . command . should . equal ( "test/fixtures/bin/echo-env" ) ;
0 commit comments