Testing with Jest

Run Settings
LanguageJavaScript
Language Version
Run Command
// Note that the run command is set to 'jest' module.exports = { clearMocks: true, coverageProvider: "v8", testEnvironment: "node", };
function sum(a, b) { return a + b; } module.exports = sum;
const sum = require('./sum'); test('adds 1 + 2 to equal 3', () => { expect(sum(1, 2)).toBe(3); });
Editor Settings
Theme
Key bindings
Full width
Lines