GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: configure proper devDir for invoking configure() · nodejs/node-gyp@c506a6a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • common.js
    • test-configure-python.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common.js‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const envPaths = require('env-paths')
2+
3+
module.exports.devDir = () => envPaths('node-gyp', { suffix: '' }).cache
Collapse file

‎test/test-configure-python.js‎

Copy file name to clipboardExpand all lines: test/test-configure-python.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ test('configure PYTHONPATH with no existing env', function (t) {
3030
t.equal(process.env.PYTHONPATH, EXPECTED_PYPATH)
3131
return SPAWN_RESULT
3232
}
33+
prog.devDir = devDir
3334
configure(prog, [], t.fail)
3435
})
3536

@@ -49,6 +50,7 @@ test('configure PYTHONPATH with existing env of one dir', function (t) {
4950

5051
return SPAWN_RESULT
5152
}
53+
prog.devDir = devDir
5254
configure(prog, [], t.fail)
5355
})
5456

@@ -70,5 +72,6 @@ test('configure PYTHONPATH with existing env of multiple dirs', function (t) {
7072

7173
return SPAWN_RESULT
7274
}
75+
prog.devDir = devDir
7376
configure(prog, [], t.fail)
7477
})

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.