Answer the question
In order to leave comments, you need to log in
How to properly add unit tests to a project?
Hey!
I can't figure out how to properly organize module testing for a web application. I am doing this for the first time and I can not decide on the structure that will be correct.
Abstraction of my project structure:
app
-index.js
----graphql
|--schema.js
|--mutation.js
|--query.js
----pages
|--main.js
|--other.js
----public
|--another.js
app
-index.js
-index.test.js - сюда буду реквайрить остальные .test. файлы
----graphql
|--schema.js
|--mutation.js
|--query.js
|--schema.test.js
|--mutation.test.js
|--query.test.js
----pages
|--main.js
|--other.js
|--main.test.js
|--other.test.js
----public
|--another.js
|--another.test.js
.test.
. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question