Skip to content

tagging and testing should fail, not hang, when tests are wrong #32

@AlexJeffcott

Description

@AlexJeffcott

Expected Behavior

the component tagging fails / tests fail to run with an error

Actual Behavior

it hangs with no error

Steps to Reproduce the Problem

1 cd project_directory
2 bit init
3 bit login
4 mkdir src
5 touch try.js
6 in try.js export default (a, b)=>a+b
7 mkdir __tests__
8 touch try.test.js
9 in try.test.js (the try function is not called in the expect method thus creating a test that doesn't work)

import try from "../try";
it('test try', () => expect((1, 2)).toEqual(3));

10 bit add src -t 'src/__tests__/*'
11 bit import bit.envs/compilers/babel -c
12 bit import bit.envs/testers/jest -t
13a bit tag --all 1.0.0
13b bit test

Specifications

  • Bit version: 14.1.1
  • Node version: 12.1.0
  • npm / yarn version: 6.9.0
  • Platform: Ubuntu Bionic Beaver
  • Bit compiler (include version): bit.envs/compilers/babel@7.0.1
  • Bit tester (include version): bit.envs/testers/jest@22.4.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions