Skip to content

Commit 428a4b4

Browse files
committed
chore(create): restore nkzw-tech placeholder in pre-feature tests
PR review (#3138196923, #3138197820, #3138198930): the earlier revert went half-way — the pre-feature GitHub-URL parsing tests should keep their original `nkzw-tech/fate-template` placeholder, not `acme-corp`. These tests are unrelated to the `@org` feature and should never have been touched by the placeholder refactor.
1 parent be95279 commit 428a4b4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

packages/cli/src/create/__tests__/discovery.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@ describe('GitHub template helpers', () => {
8585
});
8686

8787
it('should infer the repository name from GitHub templates', () => {
88-
expect(inferGitHubRepoName('github:acme-corp/fate-template')).toBe('fate-template');
89-
expect(inferGitHubRepoName('https://github.com/acme-corp/fate-template')).toBe('fate-template');
88+
expect(inferGitHubRepoName('github:nkzw-tech/fate-template')).toBe('fate-template');
89+
expect(inferGitHubRepoName('https://github.com/nkzw-tech/fate-template')).toBe(
90+
'fate-template',
91+
);
9092
});
9193

9294
it('should resolve GitHub templates to degit without reusing the original URL as destination', () => {
93-
const template = discoverTemplate('https://github.com/acme-corp/fate-template', ['my-app'], {
95+
const template = discoverTemplate('https://github.com/nkzw-tech/fate-template', ['my-app'], {
9496
rootDir: '/tmp/workspace',
9597
isMonorepo: false,
9698
monorepoScope: '',
@@ -106,7 +108,7 @@ describe('GitHub template helpers', () => {
106108
});
107109

108110
expect(template.command).toBe('degit');
109-
expect(template.args).toEqual(['acme-corp/fate-template', 'my-app']);
111+
expect(template.args).toEqual(['nkzw-tech/fate-template', 'my-app']);
110112
});
111113

112114
it('should keep manifest-resolved specifiers literal when skipShorthand=true', () => {

0 commit comments

Comments
 (0)