Files
pnpm/exec/plugin-commands-script-runners/test/makeEnv.test.ts
Zoltan Kochan 1c8c4e49f5 style: add eslint-plugin-simple-import-sort (#10947)
Add eslint-plugin-simple-import-sort to enforce consistent import ordering:
- Node.js builtins first
- External packages second
- Relative imports last
- Named imports sorted alphabetically within each statement
2026-03-13 02:02:38 +01:00

11 lines
381 B
TypeScript

import path from '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})`)
})