Convert to ESM.
Context: https://github.com/actions/typescript-action/pull/969
This commit is contained in:
committed by
Fabio Niephaus
parent
59f089d81e
commit
b4c67abb33
@@ -2,9 +2,11 @@ import * as path from 'path'
|
||||
import * as mandrel from '../src/mandrel'
|
||||
import { expect, test } from '@jest/globals'
|
||||
import { getLatestRelease } from '../src/utils'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
process.env['RUNNER_TOOL_CACHE'] = path.join(__dirname, 'TOOL_CACHE')
|
||||
process.env['RUNNER_TEMP'] = path.join(__dirname, 'TEMP')
|
||||
const dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
process.env['RUNNER_TOOL_CACHE'] = path.join(dirname, 'TOOL_CACHE')
|
||||
process.env['RUNNER_TEMP'] = path.join(dirname, 'TEMP')
|
||||
|
||||
test('request invalid version/javaVersion combination', async () => {
|
||||
for (const combination of [
|
||||
|
||||
Reference in New Issue
Block a user