mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 03:21:55 -04:00
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
11 lines
381 B
TypeScript
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})`)
|
|
})
|