Skip to content

Commit

Permalink
Merge pull request #294 from GrapesJS/unit-tests
Browse files Browse the repository at this point in the history
Add unit tests for `utils.ts`
  • Loading branch information
danstarns committed Sep 5, 2024
2 parents 8be18b7 + cc16dcf commit 7375fd5
Show file tree
Hide file tree
Showing 5 changed files with 5,330 additions and 2,630 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',
],
};
10 changes: 10 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { Config } from 'jest';

const config: Config = {
testEnvironment: 'node',
verbose: true,
modulePaths: ['<rootDir>/src'],
testMatch: ['<rootDir>/test/**/*.(t|j)s'],
};

export default config;
Loading

0 comments on commit 7375fd5

Please sign in to comment.