runTestDir returns the directory for Node.js to use when running tests for package p. Empty string means current directory.
(p *gbuild.PackageData)
| 950 | // runTestDir returns the directory for Node.js to use when running tests for package p. |
| 951 | // Empty string means current directory. |
| 952 | func runTestDir(p *gbuild.PackageData) string { |
| 953 | if p.IsVirtual { |
| 954 | // The package is virtual and doesn't have a physical directory. Use current directory. |
| 955 | return "" |
| 956 | } |
| 957 | // Run tests in the package directory. |
| 958 | return p.Dir |
| 959 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…