Skip to content

Commit

Permalink
chore: Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog committed Oct 1, 2024
1 parent db44cce commit ad9dd6b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/kitchen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const keep = !!process.env.GTS_KEEP_TEMPDIRS;
const stagingDir = tmp.dirSync({keep, unsafeCleanup: true});
const stagingPath = stagingDir.name;
const execOpts = {
cwd: `${stagingPath}${path.sep}kitchen`,
cwd: path.join(stagingPath, 'kitchen'),
encoding: 'utf8' as BufferEncoding,
};

Expand Down Expand Up @@ -73,7 +73,13 @@ describe('🚰 kitchen sink', () => {
it('should use as a non-locally installed module', () => {
// Use from a directory different from where we have locally installed. This
// simulates use as a globally installed module.
const GTS = path.resolve(stagingPath, 'kitchen/node_modules/.bin/gts');
const GTS = path.resolve(
stagingPath,
'kitchen',
'node_modules',
'.bin',
'gts'
);
const tmpDir = tmp.dirSync({keep, unsafeCleanup: true});
const opts = {cwd: path.join(tmpDir.name, 'kitchen')};

Expand Down

0 comments on commit ad9dd6b

Please sign in to comment.