5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 15:16:56 +00:00

simplify imports

This commit is contained in:
JM Faircloth 2024-03-11 13:07:35 -05:00
parent 4bafe0b29f
commit d0d1f7bdb4
13 changed files with 16 additions and 16 deletions

View file

@ -1,7 +1,7 @@
import { vi, describe, test, expect } from 'vitest'; import { vi, describe, test, expect } from 'vitest';
vi.mock('@actions/core'); vi.mock('@actions/core');
import * as core from '@actions/core'; import core from '@actions/core';
import got from 'got'; import got from 'got';
import { when } from 'jest-when' import { when } from 'jest-when'

View file

@ -1,7 +1,7 @@
import { vi, describe, test, expect } from 'vitest'; import { vi, describe, test, expect } from 'vitest';
vi.mock('@actions/core'); vi.mock('@actions/core');
import * as core from '@actions/core'; import core from '@actions/core';
import got from 'got'; import got from 'got';
import { when } from 'jest-when' import { when } from 'jest-when'

View file

@ -1,7 +1,7 @@
import { vi, describe, test, expect } from 'vitest'; import { vi, describe, test, expect } from 'vitest';
vi.mock('@actions/core'); vi.mock('@actions/core');
import * as core from '@actions/core'; import core from '@actions/core';
import rsasign from 'jsrsasign'; import rsasign from 'jsrsasign';
import { import {
privateRsaKey, privateRsaKey,

View file

@ -1,7 +1,7 @@
import { vi, describe, test, expect } from 'vitest'; import { vi, describe, test, expect } from 'vitest';
vi.mock('@actions/core'); vi.mock('@actions/core');
import * as core from '@actions/core'; import core from '@actions/core';
import got from 'got'; import got from 'got';
import { when } from 'jest-when' import { when } from 'jest-when'

View file

@ -1,5 +1,5 @@
import got from 'got'; import got from 'got';
import * as core from '@actions/core'; import core from '@actions/core';
const vaultUrl = `${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`; const vaultUrl = `${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`;
const caCertificateRaw = `${process.env.VAULTCA}`; const caCertificateRaw = `${process.env.VAULTCA}`;

View file

@ -1,7 +1,7 @@
import { vi, describe, test, expect } from 'vitest'; import { vi, describe, test, expect } from 'vitest';
vi.mock('@actions/core'); vi.mock('@actions/core');
import * as core from '@actions/core'; import core from '@actions/core';
import got from 'got'; import got from 'got';
import { when } from 'jest-when' import { when } from 'jest-when'

View file

@ -1,5 +1,5 @@
// @ts-check // @ts-check
import * as core from '@actions/core'; import core from '@actions/core';
import got from 'got'; import got from 'got';
import jsonata from 'jsonata'; import jsonata from 'jsonata';
import { normalizeOutputKey } from './utils.js'; import { normalizeOutputKey } from './utils.js';

View file

@ -3,7 +3,7 @@ import { vi, describe, test, expect } from 'vitest';
vi.mock('got'); vi.mock('got');
vi.mock('@actions/core'); vi.mock('@actions/core');
import * as core from '@actions/core'; import core from '@actions/core';
import got from 'got'; import got from 'got';
import { import {
exportSecrets, exportSecrets,

View file

@ -1,6 +1,6 @@
// @ts-check // @ts-check
import * as core from '@actions/core'; import core from '@actions/core';
import * as fs from 'fs'; import fs from 'fs';
import got from 'got'; import got from 'got';
import rsasign from 'jsrsasign'; import rsasign from 'jsrsasign';

View file

@ -9,9 +9,9 @@ vi.mock('fs', () => ({
} }
})); }));
import * as core from '@actions/core'; import core from '@actions/core';
import * as got from 'got' import got from 'got'
import * as fs from 'fs'; import fs from 'fs';
import { when } from 'jest-when' import { when } from 'jest-when'
import { retrieveToken } from './auth.js'; import { retrieveToken } from './auth.js';

View file

@ -1,4 +1,4 @@
import * as core from '@actions/core'; import core from '@actions/core';
import { exportSecrets } from './action.js'; import { exportSecrets } from './action.js';
(async () => { (async () => {

View file

@ -2,7 +2,7 @@ import { vi, describe, test, expect } from 'vitest';
vi.mock('@actions/core'); vi.mock('@actions/core');
import * as core from '@actions/core'; import core from '@actions/core';
import ServerMock from 'mock-http-server'; import ServerMock from 'mock-http-server';
import { exportSecrets } from './action.js'; import { exportSecrets } from './action.js';
import { when } from 'jest-when'; import { when } from 'jest-when';

View file

@ -1,7 +1,7 @@
import jsonata from 'jsonata'; import jsonata from 'jsonata';
import { WILDCARD } from './constants.js'; import { WILDCARD } from './constants.js';
import { normalizeOutputKey } from './utils.js'; import { normalizeOutputKey } from './utils.js';
import * as core from '@actions/core'; import core from '@actions/core';
/** /**
* @typedef {Object} SecretRequest * @typedef {Object} SecretRequest