Skip to content
tom2kotaPublic

About

Quiz with Jest (JavaScript framework)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

123 Commits

Folders and files

Repository files navigation

Quiz with Jest (JavaScript framework)


JS Playground

JSPlayground


Global install

npm i --save-dev jest babel-jest @babel/core @babel/preset-env
npm i -g jest
jest quiz/reversestring/test.js --watch

Local install

npm i jest babel-jest @babel/core @babel/preset-env
npm i jest
import {expect, test} from "@jest/globals";
import reverse from "./index";

test('Reverse function exists', () => {
    expect(reverse).toBeDefined();
});

test('Reverse reverses a string', () => {
    expect(reverse('abcd')).toEqual('dcba');
});

upgrading the vulnerable packages and running

npm audit fix --force

origin

About

Quiz with Jest (JavaScript framework)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages