doctor: warn when storebound runs from a folder macOS guards (a launchd job hangs opening it)
This commit is contained in:
parent
724f5b9763
commit
152e40fb8a
3 changed files with 28 additions and 1 deletions
9
tests/doctor-tcc.test.ts
Normal file
9
tests/doctor-tcc.test.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { expect, test } from 'bun:test';
|
||||
import { protectedInstall } from '../cli/doctor';
|
||||
|
||||
test('a storebound running from ~/Desktop (a bun link to a checkout) is named; npm / bun global installs are fine', () => {
|
||||
expect(protectedInstall('/Users/you/Desktop/storebound/dist/storebound.mjs', '/Users/you', 'darwin')).toBe('~/Desktop');
|
||||
expect(protectedInstall('/Users/you/Documents/x/cli/index.ts', '/Users/you', 'darwin')).toBe('~/Documents');
|
||||
expect(protectedInstall('/Users/you/.bun/install/global/node_modules/storebound/dist/storebound.mjs', '/Users/you', 'darwin')).toBeNull();
|
||||
expect(protectedInstall('/Users/you/Desktop/x.mjs', '/Users/you', 'linux')).toBeNull();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue