So i have this very very simple dummy test:
import {expect} from 'chai';
describe('calculate', function () {
it('add', function () {
let result = 2 + 5;
expect(result).equal(7);
});
});
Here i get the following error when i run it:
(function (exports, require, module, __filename, __dirname) { import { expect } from 'chai';
^
SyntaxError: Unexpected token {
Can anyone tell me whats going on?