Skip to content

Latest commit

 

History

History

elevator-specs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🛗 Elevator Specs

#elevator #jest #spec

Shared virtual elevators specification tests, using @testing-library.

Used by virtual-elevators, and other elevator projects

Instructions

Because of limitations with Jest and symbolic links, current usage method involves copying test files from this project into the consumer project by adding a script command that runs before Jest. See virtual-elevators/package.json for usage example

// In consumer's package.json
{
  "scripts": {
    "setup:spec": "bash ../elevator-specs/setup.sh",
    "run:jest": "jest spec",
    "test": "run-s setup:spec run:jest",
  }
}