Comments (2)
I have found how to set the correct location :
The call to approvals.mocha must be done inside the describe block and not outside
describe('javascript simple Approvals tests #1', function () {
const approvals = require('approvals');
approvals.mocha(__dirname);
it ('hello world', function () {
const value = 'HELLO WORLD';
this.verify(value);
});
});
from approvals.nodejs.
Nice - I actually don't like the mocha integration - because of this scoping issue... I'm glad you figured something out for you need.
from approvals.nodejs.
Related Issues (20)
- .approvalsConfig example should be YAML
- Option to block test progress on diff tool HOT 1
- Approvals.NodeJS pulls `"edge"`, `"edge-cs"`, and `"nan"` dependencies on Windows HOT 1
- Allow specifying a file extension from options override (HTML for instance, helpful to preview in the browser) HOT 1
- Setting up the project fails with ENOTFOUND HOT 1
- Add an IntelliJ reporter
- failOnLineEndingDifferences not working HOT 3
- Cannot read property 'blockUntilReporterExits' of undefined HOT 3
- exitCode always 0 when encountering stale approvals HOT 2
- security issue with `marked` version via `msee` HOT 2
- Empty Files
- DateScrubber.getScrubberFor doesn't support the following:
- Approvals JS and Jest HOT 2
- natives dependency deprecated by its maintainer
- how to use combinationverify HOT 1
- Incorrect version tag in 6.2.1 HOT 3
- Remove TS sources from package
- [Windows] Install broken since node v20.12.2 HOT 1
- event-stream flatmap-stream HOT 2
- Callback or promise so I can wait until visual diff editor closes before moving on to the next test? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from approvals.nodejs.