Skip to content

Commit

Permalink
cheating on the riot jest transformer to use babel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
libetl committed Aug 28, 2018
1 parent 9118d11 commit 8773d1f
Show file tree
Hide file tree
Showing 4 changed files with 909 additions and 1,132 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Expand Up @@ -29,6 +29,7 @@ module.exports = {
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor',
'.*\\.(svelte)$': '<rootDir>/node_modules/svelte-jest',
'^.+\\.(tag)$': '<rootDir>/node_modules/riot-jest-transformer',
'^.+\\.(txt)$': '<rootDir>/node_modules/jest-raw-loader',
},
testPathIgnorePatterns: ['/node_modules/', '/dist/', 'addon-jest.test.js', '/cli/test/'],
collectCoverage: false,
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -119,6 +119,7 @@
"jest-image-snapshot": "^2.4.3",
"jest-jasmine2": "^23.4.2",
"jest-preset-angular": "^6.0.0",
"jest-raw-loader": "^1.0.1",
"jest-teamcity-reporter": "^0.9.0",
"jest-vue-preprocessor": "^1.4.0",
"lerna": "2.11.0",
Expand Down
4 changes: 4 additions & 0 deletions riot-jest-transformer.json
@@ -0,0 +1,4 @@
{
"transformer": "@babel/core",
"method": "transform"
}

0 comments on commit 8773d1f

Please sign in to comment.