Skip to content

Commit 3ec52df

Browse files
authored
chore: add file extensions to more imports after ESM conversion (#58)
1 parent 5475741 commit 3ec52df

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

__tests__/add-item.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
22

33
import * as core from '@actions/core';
44

5-
import * as index from '../src/add-item';
6-
import { ProjectDetails, addItem, editItem, getProject } from '../src/lib';
7-
import { mockGetInput } from './utils';
5+
import * as index from '../src/add-item.js';
6+
import { ProjectDetails, addItem, editItem, getProject } from '../src/lib.js';
7+
import { mockGetInput } from './utils.js';
88

99
vi.mock('@actions/core');
1010
vi.mock('../src/lib');

__tests__/find-project.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
22

33
import * as core from '@actions/core';
44

5-
import * as index from '../src/find-project';
6-
import { findProject } from '../src/lib';
7-
import { mockGetBooleanInput, mockGetInput } from './utils';
5+
import * as index from '../src/find-project.js';
6+
import { findProject } from '../src/lib.js';
7+
import { mockGetBooleanInput, mockGetInput } from './utils.js';
88

99
vi.mock('@actions/core');
1010
vi.mock('../src/lib');

__tests__/find-workflow.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
22

33
import * as core from '@actions/core';
44

5-
import * as index from '../src/find-workflow';
6-
import { findWorkflow } from '../src/lib';
7-
import { mockGetBooleanInput, mockGetInput } from './utils';
5+
import * as index from '../src/find-workflow.js';
6+
import { findWorkflow } from '../src/lib.js';
7+
import { mockGetBooleanInput, mockGetInput } from './utils.js';
88

99
vi.mock('@actions/core');
1010
vi.mock('../src/lib');

__tests__/get-workflow.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
22

33
import * as core from '@actions/core';
44

5-
import * as index from '../src/get-workflow';
6-
import { getWorkflow } from '../src/lib';
7-
import { mockGetBooleanInput, mockGetInput } from './utils';
5+
import * as index from '../src/get-workflow.js';
6+
import { getWorkflow } from '../src/lib.js';
7+
import { mockGetBooleanInput, mockGetInput } from './utils.js';
88

99
vi.mock('@actions/core');
1010
vi.mock('../src/lib');

__tests__/github-script/async-function.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/* eslint-disable @typescript-eslint/no-explicit-any, vitest/expect-expect */
55
import { describe, expect, test } from 'vitest';
66

7-
import { callAsyncFunction } from '../../src/github-script/async-function';
7+
import { callAsyncFunction } from '../../src/github-script/async-function.js';
88

99
describe('callAsyncFunction', () => {
1010
test('calls the function with its arguments', async () => {

__tests__/github-script/get-retry-options.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, test } from 'vitest';
55

6-
import { getRetryOptions } from '../../src/github-script/retry-options';
6+
import { getRetryOptions } from '../../src/github-script/retry-options.js';
77

88
describe('getRequestOptions', () => {
99
test('retries disabled if retries == 0', async () => {

__tests__/lib.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Mock } from 'vitest';
33

44
import { GraphqlResponseError } from '@octokit/graphql';
55

6-
import { execCliCommand, getOctokit } from '../src/helpers';
7-
import * as lib from '../src/lib';
6+
import { execCliCommand, getOctokit } from '../src/helpers.js';
7+
import * as lib from '../src/lib.js';
88

99
type MockGraphqlResponseErrorError = {
1010
type: string;

0 commit comments

Comments
 (0)