Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed Jan 10, 2025
1 parent d438b53 commit 1e02df4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions node-src/lib/findChangedDependencies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { Context } from '..';
import * as git from '../git/git';
import { findChangedDependencies } from './findChangedDependencies';
import { deps } from './output.js';

Check failure on line 7 in node-src/lib/findChangedDependencies.test.ts

View workflow job for this annotation

GitHub Actions / lint-and-test / lint-and-test

Cannot find module './output.js' or its corresponding type declarations.
import TestLogger from './testLogger';

vi.mock('snyk-nodejs-lockfile-parser');
Expand Down Expand Up @@ -103,9 +104,7 @@ describe('findChangedDependencies', () => {

it('returns updated dependencies', async () => {
// HEAD
buildDepTree.mockResolvedValueOnce({
dependencies: { react: { name: 'react', version: '18.2.0', dependencies: {} } },
});
buildDepTree.mockResolvedValueOnce(deps.dependencies);

// Baseline A
checkoutFile.mockResolvedValueOnce('A.package.json');
Expand Down
1 change: 1 addition & 0 deletions node-src/lib/outputs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const deps = {};

0 comments on commit 1e02df4

Please sign in to comment.