Skip to content

Commit

Permalink
feat: Convert package to ESM (#575)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Convertir the package to ESM might lead to issues when building
  • Loading branch information
LautaroPetaccio authored Jan 31, 2024
1 parent cf56236 commit ab21d81
Show file tree
Hide file tree
Showing 35 changed files with 7,487 additions and 4,209 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.DS_Store
node_modules
dist
esm
cjs
.nyc_output
coverage
.vscode
28 changes: 28 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
testEnvironment: 'jsdom',
moduleNameMapper: {
'\\.(css|less|sass|scss)$': '<rootDir>/__mocks__/styleMock.js',
'\\.(gif|ttf|eot|svg)$': '<rootDir>/__mocks__/fileMock.js',
'@0xsquid': 'identity-obj-proxy'
},
transform: {
'^.+\\.(t|j)sx?$': [
'@swc/jest',
{
jsc: {
target: 'es2020',
transform: {
react: {
runtime: 'automatic'
}
}
}
}
]
},
transformIgnorePatterns: [
'node_modules/?!axios|@dcl/hashing',
],
setupFilesAfterEnv: ['<rootDir>/src/tests/setupTests.ts']
}
16 changes: 0 additions & 16 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit ab21d81

Please sign in to comment.