Skip to content

LaunchAcademy/high-card-dealer-with-tests

Repository files navigation

High Card Dealer with Tests

Useful test running commands

yarn test 
  • runs the full test suite
yarn test:debug
  • runs the test suite and hits debuggers if Node developer tools is open in Chrome
yarn test src/__tests__/01_Card.test.js
  • runs a specific test file

Skipping Tests

test('it is raining', () => {
  expect(inchesOfRain()).toBeGreaterThan(0);
});

test.skip('it is not snowing', () => {
  expect(inchesOfSnow()).toBe(0);
});
test('it is raining', () => {
  expect(inchesOfRain()).toBeGreaterThan(0);
});

test.only('it is not snowing', () => {
  expect(inchesOfSnow()).toBe(0);
});

Using x before a test can alos work

it.skip(name, fn) or
xit(name, fn) or
xtest(name, fn)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published