Skip to content

Commit 3fc6ab2

Browse files
committed
chore: add file extensions in tests
1 parent 856533c commit 3fc6ab2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

__tests__/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import { describe, expect, it, vi } from 'vitest';
55

6-
import * as main from '../src/main';
6+
import * as main from '../src/main.js';
77

88
// Mock the action's entrypoint
99
const runMock = vi.spyOn(main, 'run').mockImplementation(async () => {});

__tests__/lib.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
33
import * as core from '@actions/core';
44
import * as exec from '@actions/exec';
55

6-
import * as lib from '../src/lib';
6+
import * as lib from '../src/lib.js';
77

88
vi.mock('@actions/core');
99
vi.mock('@actions/exec');

__tests__/main.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import * as fs from 'node:fs';
55
import * as core from '@actions/core';
66
import { RequestError } from '@octokit/request-error';
77

8-
import * as lib from '../src/lib';
9-
import * as main from '../src/main';
10-
import { mockGetBooleanInput, mockGetInput } from './utils';
8+
import * as lib from '../src/lib.js';
9+
import * as main from '../src/main.js';
10+
import { mockGetBooleanInput, mockGetInput } from './utils.js';
1111

1212
const createCommit = vi.fn();
1313
const createRef = vi.fn();

0 commit comments

Comments
 (0)