diff --git a/jest.config.mjs b/jest.config.mjs index 8138a72..f5d64da 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -4,7 +4,7 @@ const config = { '/tests/setup-files/setup.cjs', '/tests/setup-files/setup.mjs', '/tests/setup-files/setup.js', - ] + ], } export default config diff --git a/tests/setup-files/index.test.js b/tests/setup-files/index.test.js index 1af8c19..f9a4cee 100644 --- a/tests/setup-files/index.test.js +++ b/tests/setup-files/index.test.js @@ -8,4 +8,4 @@ test('imports .mjs file', () => { test('imports .js (module)', () => { expect(global.SETUP_JS_MODULE).toBe('setup.js') -}) \ No newline at end of file +}) diff --git a/tests/setup-files/setup.cjs b/tests/setup-files/setup.cjs index 62cc1b3..6d506f2 100644 --- a/tests/setup-files/setup.cjs +++ b/tests/setup-files/setup.cjs @@ -1,3 +1,3 @@ const path = require('path') -global.SETUP_CJS = path.basename(__filename) // using some cjs stuff here to make sure it works \ No newline at end of file +global.SETUP_CJS = path.basename(__filename) // using some cjs stuff here to make sure it works diff --git a/tests/setup-files/setup.js b/tests/setup-files/setup.js index 83d4efa..ccd3f4a 100644 --- a/tests/setup-files/setup.js +++ b/tests/setup-files/setup.js @@ -1,3 +1,3 @@ const { default: path } = await import('path') -global.SETUP_JS_MODULE = path.basename(import.meta.url) \ No newline at end of file +global.SETUP_JS_MODULE = path.basename(import.meta.url) diff --git a/tests/setup-files/setup.mjs b/tests/setup-files/setup.mjs index 3b51a17..f4904a3 100644 --- a/tests/setup-files/setup.mjs +++ b/tests/setup-files/setup.mjs @@ -1,3 +1,3 @@ import path from 'path' -global.SETUP_MJS = path.basename(import.meta.url) \ No newline at end of file +global.SETUP_MJS = path.basename(import.meta.url)