Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-capellari committed Oct 2, 2023
1 parent a7ce680 commit 7fcfa7a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Project } from './project/project.ts';

// Fetch base
git.setup(inputs.projectRoot);
await git.fetch('origin', inputs.base, '--progress', '--depth=1')
await git.fetch('origin', inputs.base, '--progress', '--depth=1');

// Get workspace
const project = new Project(inputs.projectRoot);
Expand Down
2 changes: 1 addition & 1 deletion src/project/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class Project {
const { workspaces = [] } = main.manifest;

for (const pattern of workspaces) {
const globber = await glob.create(path.join(this.root, pattern), { matchDirectories: true })
const globber = await glob.create(path.join(this.root, pattern), { matchDirectories: true });

for await (const dir of globber.globGenerator()) {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/project/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ export class Workspace {
}

get reference(): string {
return qstr`${this.name}#?:${this.version}@#$?#`
return qstr`${this.name}#?:${this.version}@#$?#`;
}
}
8 changes: 4 additions & 4 deletions tests/project/workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ describe('Workspace.isAffected', () => {
});

it('should return true as tested workspace is not affected but its dependencies are', async () => {
vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB });
vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC });
vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB; });
vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC; });
vi.spyOn(wksB, 'isAffected').mockResolvedValue(true);
vi.spyOn(wksC, 'isAffected').mockResolvedValue(false);

Expand All @@ -128,8 +128,8 @@ describe('Workspace.isAffected', () => {
});

it('should return true as tested workspace is not affected but its devDependencies are', async () => {
vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB });
vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC });
vi.spyOn(wksA, 'dependencies').mockImplementation(async function* () { yield wksB; });
vi.spyOn(wksA, 'devDependencies').mockImplementation(async function* () { yield wksC; });
vi.spyOn(wksB, 'isAffected').mockResolvedValue(false);
vi.spyOn(wksC, 'isAffected').mockResolvedValue(true);

Expand Down

0 comments on commit 7fcfa7a

Please sign in to comment.