Migrate from CommonJS to ESM (#6651)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
const Joi = require('joi')
|
||||
const { isIntegerPercentage } = require('../test-validators')
|
||||
const t = (module.exports = require('../tester').createServiceTester())
|
||||
import Joi from 'joi'
|
||||
import { isIntegerPercentage } from '../test-validators.js'
|
||||
import { createServiceTester } from '../tester.js'
|
||||
export const t = await createServiceTester()
|
||||
|
||||
// Examples for this service can be found through the explore page:
|
||||
// https://codeclimate.com/explore
|
||||
|
||||
Reference in New Issue
Block a user