RunKit + npm: jest-lite

node v10.24.1
endpointsharetweet
// Define `window` to fake browser env global.window = {}; const {describe, it, expect, run} = require("jest-lite"); function sum(x, y) { return x + y; } describe('sum', () => { it('adds the two given numbers', () => { expect(sum(2, 2)).toBe(4); }); }); const result = await run(); console.log(result);
Created from: https://npm.runkit.com/jest-lite
Loading…