update got dependency and convert to esm module (#533)
* update require got to import got * convert remaining to esm * wip: replace jest with vitest * fix test imports and vitest config * remove dist package.json * fix import in ent test * add dist * move actions/core to prod dependency * remove unused import that was breaking esm compilation * simplify imports * use module.createRequire to import jsonata * add doc link comment * add comments on import insanity * add more comments * update PR tempalte * bump got and remove jest deps * revert debug npm run command * fix fs import * simplify vitest config for each test suite
This commit is contained in:
committed by
GitHub
parent
a727ce205a
commit
77efb36ae3
@@ -1,3 +1,5 @@
|
||||
import { describe, test, expect } from 'vitest';
|
||||
|
||||
describe('e2e-tls', () => {
|
||||
it('verify', () => {
|
||||
expect(process.env.SECRET).toBe("SUPERSECRET");
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
verbose: true
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
const got = require('got');
|
||||
const core = require('@actions/core');
|
||||
import got from 'got';
|
||||
import core from '@actions/core';
|
||||
|
||||
const vaultUrl = `${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`;
|
||||
const caCertificateRaw = `${process.env.VAULTCA}`;
|
||||
|
||||
11
integrationTests/e2e-tls/vitest.config.js
Normal file
11
integrationTests/e2e-tls/vitest.config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { defineConfig, configDefaults } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
// required to make jest-when work with vitest
|
||||
globals: true,
|
||||
include: [
|
||||
'**/integrationTests/e2e-tls/**.{test,spec}.?(c|m)[jt]s?(x)',
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user