Unexpected reserved word error while testing using wallaby
<p>In my test file where I have written test cases, I have imported a typescript file like below:</p>

<pre><code>import {rootReducer} from "../src/reducers/rootReducer";
</code></pre>

<p>In rootReducer.ts I have imported another typescript file like below:</p>

<pre><code>import taskReducer from "./taskReducer.ts";
</code></pre>

<p>Then it shows the error:</p>

<pre><code>SyntaxError: Unexpected reserved word
at src/reducers/rootReducer.ts:7
</code></pre>

<p>Both rootReducer.ts and taskReducer.ts come under folder /src/reducers</p>

<p>No failing tests if you remove '.ts' from import statement, but throws error in browser. The app won't run then</p>

<p>The wallaby configuration is as below:</p>

<pre><code>module.exports = function (wallaby) {

    return {
        files: [
            'src/*.ts',
            'src/**/*.ts'
        ],

        tests: [
            'test/*Test.ts'
        ],

        testFramework: "mocha",

        env: {
            type: 'node'
        },

        compilers: {
            '**/*.ts': wallaby.compilers.typeScript({
                /* 1 for CommonJs*/
                module: 1
            })
        }
    }
};
</code></pre>