Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog committed Oct 1, 2024
1 parent ad9dd6b commit ee9a121
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/kitchen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,27 @@ describe('🚰 kitchen sink', () => {
path.join(stagingPath, 'gts.tgz'),
path.join(tmpDir.name, 'gts.tgz')
);

// TODO: DEBUG
console.dir(
{
LISTING_BEFORE: fs.readdirSync(path.join(tmpDir.name, 'kitchen')),
},
{depth: 20}
);

// It's important to use `-n` here because we don't want to overwrite
// the version of gts installed, as it will trigger the npm install.
spawn.sync(GTS, ['init', '-n'], opts);

// TODO: DEBUG
console.dir(
{
LISTING: fs.readdirSync(path.join(tmpDir.name, 'kitchen')),
},
{depth: 20}
);

// The `extends` field must use the local gts path.
const tsconfigJson = fs.readFileSync(
path.join(tmpDir.name, 'kitchen', 'tsconfig.json'),
Expand Down

0 comments on commit ee9a121

Please sign in to comment.