Skip to content

tom2kota/jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published