mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-23 03:48:51 +00:00
convert remaining to esm
This commit is contained in:
parent
cd38d43a7a
commit
b379e88781
22 changed files with 77 additions and 68 deletions
|
|
@ -1,11 +1,11 @@
|
|||
jest.mock('@actions/core');
|
||||
jest.mock('@actions/core/lib/command');
|
||||
const core = require('@actions/core');
|
||||
import * as core from '@actions/core';
|
||||
|
||||
import got from 'got';
|
||||
const { when } = require('jest-when');
|
||||
import { when } from 'jest-when'
|
||||
|
||||
const { exportSecrets } = require('../../src/action');
|
||||
import exportSecrets from '../../src/action.js';
|
||||
|
||||
const vaultUrl = `http://${process.env.VAULT_HOST || 'localhost'}:${process.env.VAULT_PORT || '8201'}`;
|
||||
const vaultToken = `${process.env.VAULT_TOKEN || 'testtoken'}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue