Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sparten11740 committed Oct 3, 2024
1 parent 7fd7259 commit b2c14d3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = {
'<rootDir>/tests/setup-files/setup.cjs',
'<rootDir>/tests/setup-files/setup.mjs',
'<rootDir>/tests/setup-files/setup.js',
]
],
}

export default config
2 changes: 1 addition & 1 deletion tests/setup-files/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ test('imports .mjs file', () => {

test('imports .js (module)', () => {
expect(global.SETUP_JS_MODULE).toBe('setup.js')
})
})
2 changes: 1 addition & 1 deletion tests/setup-files/setup.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const path = require('path')

global.SETUP_CJS = path.basename(__filename) // using some cjs stuff here to make sure it works
global.SETUP_CJS = path.basename(__filename) // using some cjs stuff here to make sure it works
2 changes: 1 addition & 1 deletion tests/setup-files/setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { default: path } = await import('path')

global.SETUP_JS_MODULE = path.basename(import.meta.url)
global.SETUP_JS_MODULE = path.basename(import.meta.url)
2 changes: 1 addition & 1 deletion tests/setup-files/setup.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import path from 'path'

global.SETUP_MJS = path.basename(import.meta.url)
global.SETUP_MJS = path.basename(import.meta.url)

0 comments on commit b2c14d3

Please sign in to comment.