'Describe is not defined' when running my test
I'm getting the following error when running my test case with mocha ReferenceError: describe is not defined at Object.<anonymous> (/myproject/test/unit/physicalperson.spec.js:12:1) Someone knows why this is happens? package.json "scripts": { "test": "mocha" }, physicalperson.spec.js const request = require('supertest-as-promised'); const chai = require('chai'); const app = require('../../src/server'); const expect = chai.expect; const PHYSICALPERSON_ENDPOINT = '/api/physicalperson'; describe('Integration tests for Physical Person', () => { describe('\nFAIL Cases - Physical Person', () => { it
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.