This is the repository for team 3
- Selected: JavaScript/Node.js
- Selected: Node.js
- Selected: Mocha
- Selected: GitHub Actions
- Selected: ESLint
- Selected: Prettier
- Selected: npm
- ESLint and Prettier should be configured as strictly as possible.
src/helloWorld.js
file:
console.log('Hello, World!');
test/test.js
:
const sum = (a, b) => a + b;
test('adds 2 + 2 to equal 4', () => {
expect(sum(2, 2)).toBe(4);
});
- MIT license
- install required modules:
npm install
- run helloWorld.js:
npm run helloworld
- run test for 2 + 2 = 4:
npm test
- run prettier:
npm run format
- run ESlint:
npm run lint