File tree 2 files changed +10
-0
lines changed
packages/e2e-tests/test-applications
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
import type { PlaywrightTestConfig } from '@playwright/test' ;
2
2
import { devices } from '@playwright/test' ;
3
3
4
+ // Fix urls not resolving to localhost on Node v17+
5
+ // See: https://github.com/axios/axios/issues/3821#issuecomment-1413727575
6
+ import { setDefaultResultOrder } from 'dns' ;
7
+ setDefaultResultOrder ( 'ipv4first' ) ;
8
+
4
9
const testEnv = process . env . TEST_ENV ;
5
10
6
11
if ( ! testEnv ) {
Original file line number Diff line number Diff line change 1
1
import type { PlaywrightTestConfig } from '@playwright/test' ;
2
2
import { devices } from '@playwright/test' ;
3
3
4
+ // Fix urls not resolving to localhost on Node v17+
5
+ // See: https://github.com/axios/axios/issues/3821#issuecomment-1413727575
6
+ import { setDefaultResultOrder } from 'dns' ;
7
+ setDefaultResultOrder ( 'ipv4first' ) ;
8
+
4
9
const testEnv = process . env . TEST_ENV ;
5
10
6
11
if ( ! testEnv ) {
You can’t perform that action at this time.
0 commit comments