Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiwat10 committed Dec 26, 2024
1 parent bfd0d3e commit 0c40773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/create-fuels/test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ describe('CLI', { timeout: 15_000 }, () => {
});

test('should rewrite for the appropriate package manager', async () => {
process.env.npm_config_user_agent = 'bun';

const args = generateArgv({
projectName: paths.projectRoot,
packageManager: 'bun',
template: paths.templateName,
});

Expand All @@ -114,6 +115,8 @@ describe('CLI', { timeout: 15_000 }, () => {
const readme = readFileSync(readmePath, 'utf-8');
expect(readme).toContain('bun run fuels:dev');
expect(readme).toContain('bun run dev');

delete process.env.npm_config_user_agent;
});

test('create-fuels reports an error if the project directory already exists', async () => {
Expand Down
1 change: 0 additions & 1 deletion packages/create-fuels/test/utils/generateArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const generateArgs = ({
args.push(`--template`);
args.push(template);
}
args.push(`--${packageManager}`);
args.push(`--no-install`);
return args;
};
Expand Down

0 comments on commit 0c40773

Please sign in to comment.