Revert convert to esm (#544)

* Revert "update got dependency and convert to esm module (#533)"

This reverts commit 77efb36ae3.

* keep new local test file changes

* keep changes to PR template

* update changelog
This commit is contained in:
John-Michael Faircloth
2024-04-15 16:39:55 -05:00
committed by GitHub
parent ee41aa2fcf
commit 66531b2752
39 changed files with 14341 additions and 12232 deletions
+10 -10
View File
@@ -1,17 +1,17 @@
import { vi, describe, test, expect } from 'vitest';
jest.mock('got');
jest.mock('@actions/core');
jest.mock('@actions/core/lib/command');
vi.mock('got');
vi.mock('@actions/core');
import core from '@actions/core';
import got from 'got';
import {
const command = require('@actions/core/lib/command');
const core = require('@actions/core');
const got = require('got');
const {
exportSecrets,
parseSecretsInput,
parseHeadersInput
} from './action.js';
} = require('./action');
import { when } from 'jest-when'
const { when } = require('jest-when');
describe('parseSecretsInput', () => {
it('parses simple secret', () => {
@@ -132,7 +132,7 @@ describe('parseHeaders', () => {
describe('exportSecrets', () => {
beforeEach(() => {
vi.resetAllMocks();
jest.resetAllMocks();
when(core.getInput)
.calledWith('url', expect.anything())