mirror of
https://github.com/Azure/setup-helm.git
synced 2026-04-14 02:24:48 +00:00
Migrate to ESM with esbuild/vitest and upgrade to node24
- Add "type": "module" to package.json for ESM support - Replace ncc with esbuild for bundling (with createRequire banner for CJS compat) - Replace jest/ts-jest with vitest for testing - Upgrade @actions/core to ^3.0.0, @actions/exec to ^3.0.0, @actions/io to ^3.0.2, @actions/tool-cache to 4.0.0 (ESM-only versions) - Update tsconfig.json to use NodeNext module resolution - Convert all tests to use vi.mock() factory pattern for ESM-only module compatibility - Update action.yml runtime from node20 to node24 - Bump version from 4.3.1 to 5.0.0 (major version bump for breaking node runtime change)
This commit is contained in:
parent
3894c84c36
commit
b81b060e07
8 changed files with 1682 additions and 4424 deletions
10
vitest.config.ts
Normal file
10
vitest.config.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import {defineConfig} from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'node',
|
||||
include: ['**/*.test.ts'],
|
||||
clearMocks: true
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue