Skip to content

Commit

Permalink
chore: more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog committed Oct 2, 2024
1 parent 70fe05d commit 6b91ee8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/kitchen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const stagingDir = tmp.dirSync({keep, unsafeCleanup: true});
const stagingPath = stagingDir.name;
const execOpts = {
cwd: path.join(stagingPath, 'kitchen'),
encoding: 'utf8' as BufferEncoding,
};
encoding: 'utf8',
} as const;

describe('🚰 kitchen sink', () => {
const fixturesPath = path.join('test', 'fixtures');
Expand All @@ -34,6 +34,7 @@ describe('🚰 kitchen sink', () => {
fs.moveSync('gts.tgz', targetPath);
fs.copySync(fixturesPath, path.join(stagingPath, path.sep));
});

// CLEAN UP - remove the staging directory when done.
after('cleanup staging', () => {
if (!keep) {
Expand Down Expand Up @@ -81,7 +82,7 @@ describe('🚰 kitchen sink', () => {
'gts'
);
const tmpDir = tmp.dirSync({keep, unsafeCleanup: true});
const opts = {cwd: path.join(tmpDir.name, 'kitchen')};
const opts = {cwd: path.join(tmpDir.name, 'kitchen')} as const;

// Copy test files.
fs.copySync(fixturesPath, tmpDir.name);
Expand All @@ -101,7 +102,7 @@ describe('🚰 kitchen sink', () => {

// 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);
console.dir(spawn.sync(GTS, ['init', '-n'], opts), {depth: 20});

// TODO: DEBUG
console.dir(
Expand Down

0 comments on commit 6b91ee8

Please sign in to comment.