Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions __tests__/lib/createGHA.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('#createGHA', () => {
expect(fs.writeFileSync).toHaveBeenCalledWith(getGHAFileName(fileName), expect.any(String));
});

// skipping because these mocks aren't playing nicely with oclif
// biome-ignore lint/suspicious/noSkippedTests: skipping because these mocks aren't playing nicely with oclif
it.skip('should create workflow directory if it does not exist', async () => {
expect.assertions(3);

Expand Down Expand Up @@ -170,7 +170,7 @@ describe('#createGHA', () => {
expect(configstore.get(getConfigStoreKey(repoRoot))).toBe(await getMajorPkgVersion());
});

// skipping because these mocks aren't playing nicely with oclif
// biome-ignore lint/suspicious/noSkippedTests: skipping because these mocks aren't playing nicely with oclif
it.skip('should not run if not a repo', async () => {
git.checkIsRepo = vi.fn(() => {
return Promise.reject(new Error('not a repo')) as unknown as Response<boolean>;
Expand All @@ -187,7 +187,7 @@ describe('#createGHA', () => {
return expect(res.successes[0].result).toBe('success!');
});

// skipping because these mocks aren't playing nicely with oclif
// biome-ignore lint/suspicious/noSkippedTests: skipping because these mocks aren't playing nicely with oclif
it.skip('should not run if a repo with no remote', async () => {
git.remote = getGitRemoteMock('', '', '');

Expand All @@ -200,7 +200,7 @@ describe('#createGHA', () => {
return expect(res.successes[0].result).toBe('success!');
});

// skipping because these mocks aren't playing nicely with oclif
// biome-ignore lint/suspicious/noSkippedTests: skipping because these mocks aren't playing nicely with oclif
it.skip('should not run if unable to connect to remote', async () => {
git.remote = getGitRemoteMock('bad-remote', 'http://somebadurl.git');

Expand Down Expand Up @@ -257,7 +257,7 @@ describe('#createGHA', () => {
delete process.env.TEST_RDME_NPM_SCRIPT;
});

// skipping because these mocks aren't playing nicely with oclif
// biome-ignore lint/suspicious/noSkippedTests: skipping because these mocks aren't playing nicely with oclif
it.skip('should not run if repo solely contains non-GitHub remotes', async () => {
git.remote = getGitRemoteMock('origin', 'https://gitlab.com', 'main');

Expand Down
5 changes: 5 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"forceJsExtensions": true,
},
},

// This rule is flagging hundreds of false positives. https://github.com/biomejs/biome/issues/9143
"noUnresolvedImports": "off",
},

"style": {
Expand Down Expand Up @@ -59,6 +62,8 @@
* instead of using console.info() or console.warn() statements.
*/
"noConsole": "warn",

"noDeprecatedImports": "off",
},
},
},
Expand Down
Loading
Loading