Skip to content

Commit ce94960

Browse files
committed
give shell=true on win32 a try for Next.js testing on win32
1 parent 18bbd38 commit ce94960

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/nextjs/a-nextjs-app/next.test.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ const tape = require('tape')
3030

3131
const { MockAPMServer } = require('../../_mock_apm_server')
3232

33-
if (os.platform() === 'win32') {
34-
console.log('# SKIP Next.js testing currently is not supported on windows')
35-
process.exit()
36-
}
33+
// XXX
34+
// if (os.platform() === 'win32') {
35+
// console.log('# SKIP Next.js testing currently is not supported on windows')
36+
// process.exit()
37+
// }
3738
if (semver.lt(process.version, '12.22.0')) {
3839
console.log(`# SKIP next does not support node ${process.version}`)
3940
process.exit()
@@ -525,6 +526,7 @@ tape.test('-- prod server tests --', { skip: false /* XXX */ }, suite => {
525526
'./node_modules/.bin/next',
526527
['start'],
527528
{
529+
shell: os.platform() === 'win32',
528530
cwd: __dirname,
529531
env: Object.assign({}, process.env, {
530532
NODE_OPTIONS: '-r ./apmsetup.js',
@@ -617,6 +619,7 @@ tape.test('-- dev server tests --', { skip: false /* XXX */ }, suite => {
617619
'./node_modules/.bin/next',
618620
['dev'],
619621
{
622+
shell: os.platform() === 'win32',
620623
cwd: __dirname,
621624
env: Object.assign({}, process.env, {
622625
NODE_OPTIONS: '-r ./apmsetup.js',

0 commit comments

Comments
 (0)