mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 11:31:45 -04:00
Add n/prefer-node-protocol rule and autofix all bare builtin imports to use the node: prefix. Simplify the simple-import-sort builtins pattern to just ^node: since all imports now use the prefix.
11 lines
386 B
TypeScript
11 lines
386 B
TypeScript
import path from 'node:path'
|
|
|
|
import { makeEnv } from '../src/makeEnv.js'
|
|
|
|
test('makeEnv should fail if prependPaths has a path with a colon', () => {
|
|
const prependPath = `/foo/bar${path.delimiter}/baz`
|
|
expect(() => makeEnv({
|
|
prependPaths: [prependPath],
|
|
})).toThrow(`Cannot add ${prependPath} to PATH because it contains the path delimiter character (${path.delimiter})`)
|
|
})
|