Sha256: f778422c90c60b6a9c015be3f00b663e22c902072559bac014f44c6d66a1e321
Contents?: true
Size: 1.18 KB
Versions: 48
Compression:
Stored size: 1.18 KB
Contents
Execute the tests with: ```bash $ npm run test ``` Be sure your code follows best practices and coding styles, as other users do, with ESLint, a tool to perform static analysis to your code. Sometimes, tools like this save you some time detecting typos or silly mistakes in your ECMAScript code: ```bash $ npm run lint ``` Or do both at the same time: ```bash $ npm run lint-test ``` You can also run Jest in "watch" mode, which will re-run your tests automatically when you save changes to the code or test module: ```bash $ npm run watch ``` ## Making Your First ECMAScript 2015 Module Usually, tests on this track will load your implementation importing it as a ECMAScript 2015 module: `import Bob from './bob.js';`. To make it work, you just needs to export your implementation from the file the tests are looking for your module, `bob.js`: ```javascript export default class Bob { hey(message) { // // Your solution to the exercise goes here // } } ``` You can find more information about modules in the [Babel documentation](https://babeljs.io/docs/learn-es2015/#modules). To make it easier to get started, there is a *skeleton* ECMAScript file in the directory for the first exercise.
Version data entries
48 entries across 48 versions & 1 rubygems