Skip to content

Commit

Permalink
babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamero authored Nov 6, 2024
1 parent a6e8616 commit 24e78d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript'
]
}
4 changes: 2 additions & 2 deletions src/utilities/fileUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fileUtils from './fileUtils'
import * as yaml from 'js-yaml'
import fs from 'node:fs'
import * as path from 'path'
import {K8sObject} from '../types/k8sObject'
import { K8sObject } from '../types/k8sObject'

const sampleYamlUrl =
'https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/controllers/nginx-deployment.yaml'
Expand Down Expand Up @@ -107,7 +107,7 @@ describe('File utils', () => {

describe('moving files to temp', () => {
it('correctly moves the contents of a file to the temporary directory', () => {
jest.spyOn(fs, 'writeFileSync').mockImplementation(() => {})
jest.spyOn(fs, 'writeFileSync').mockImplementation(() => { })
jest.spyOn(fs, 'readFileSync').mockImplementation((filename) => {
return 'test contents'
})
Expand Down

0 comments on commit 24e78d8

Please sign in to comment.