Comments (3)
Hi @mariyan-dimitrov : If I understood your use case well, you want to override the existing prefix in differencify and instead providing your own test names which you can use it against an array of test. If that is the case, you can provide testName as an option. https://github.com/NimaSoroush/differencify#testoptions
Forexample: https://github.com/NimaSoroush/differencify/blob/master/API.md#simple-unchained
Hope this helps
from differencify.
Hi @NimaSoroush,
I don't think you understood me correctly. My current case is that I'm trying to run 5 tests at the same time. Meanwhile I'm providing unique testName for each of these test (ex. "unique_test_name_1", "unique_test_name_2", ... ), but then again, the differencify appends another index to these names like:
-> "unique_test_name_1 1.snap", "unique_test_name_2 2.snap"...
-> "unique_test_name_1 1.differencify.snap", "unique_test_name_2 2.differencify.snap" ...
-> "unique_test_name_1 1.current.snap" , "unique_test_name_2 2.current.snap" ...
I want to remove the second index ( unique_test_name_1 1.current.snap ) which is coming from Differencify.
Is there any way to do that without renaming the file after it's created by the library?
from differencify.
Hey @mariyan-dimitrov , Thanks for clarifying the issue. I misunderstood it initially. The short answer is that, it is not possible to remove the test name postfix with the current implementation. But it is fairly easy to implement that. Feel free to raise a PR for it
from differencify.
Related Issues (20)
- Multiple teststoMatchSnapShots
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 7
- An in-range update of jimp is breaking the build 🚨 HOT 7
- A mismatchThreshold of zero will always fail.
- Tests pass even when error occurs in tests HOT 1
- An in-range update of eslint-plugin-jsx-a11y is breaking the build 🚨 HOT 2
- Running w/out Jest prevents consistent filenames HOT 4
- An in-range update of eslint is breaking the build 🚨 HOT 7
- An in-range update of babel-eslint is breaking the build 🚨 HOT 1
- An in-range update of jsdoc-to-markdown is breaking the build 🚨 HOT 1
- Feature request: partial page comparison HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 5
- An in-range update of jsdoc-to-markdown is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 4
- Issue with mockRequest(); HOT 1
- An in-range update of babel-eslint is breaking the build 🚨 HOT 1
- An in-range update of jsdoc is breaking the build 🚨 HOT 1
- runtime issues with Puppeteer 8.0
- ReferenceError: GlobalOptions is not defined HOT 3
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 differencify.