0.1.0 • Published 2 years ago

can-stache-transform v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Canjs Stache template transformer for Jestjs

Install

npm install can-stache-transform --save-dev

Jest configuration:

module.exports = {
    testEnvironment: 'jest-environment-jsdom',
    transformIgnorePatterns: [
        "/node_modules/(?!can)"
    ],
    moduleFileExtensions: ["js", "stache"],
    transform: {
        "^.+\\.js$": "babel-jest",
        "^.+\\.mjs$": "babel-jest",
        "^.+\\.stache$": 'can-stache-transform',
    },
}