Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Login
Remember
Register
Ask
Q&A
All Activity
Hot!
Unanswered
Tags
Users
Ask a Question
Ask a Question
Categories
All categories
Topic[话题] (13)
Life[生活] (4)
Technique[技术] (2.1m)
Idea[创意] (3)
Jobs[工作] (2)
Others[杂七杂八] (18)
Code Example[编程示例] (0)
Recent questions tagged jestjs
0
votes
1.1k
views
1
answer
jestjs - How do I deal with localStorage in jest tests?
I keep getting "localStorage is not defined" in Jest tests which makes sense but what are my options? Hitting brick walls. Question&Answers:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.0k
views
1
answer
jestjs - Mock a constant property from a module for a specific test group
I have MyComponent.tsx that uses constants.ts module in order to do something based on the IS_IOS constant: import ... a-constant-property-from-a-module-for-a-specific-test-group...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.5k
views
1
answer
jestjs - How to test react-native methods?
I want to test Vibration module of react-native, the problem is that I get an error when I try to test ... ://stackoverflow.com/questions/65848268/how-to-test-react-native-methods...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.6k
views
1
answer
jestjs - react-query how to call mutate from custom useMutation hook in Jest test
I'm running a React Native project where I'm testing custom hooks written with react-query. I'm using Jest, ... -how-to-call-mutate-from-custom-usemutation-hook-in-jest-test...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
878
views
1
answer
jestjs - Jest - getting error when mocking FS modules and calling config module
I'm writing unit tests with Jest trying to test a module which uses FS. The module file: import fs from ' ... /jest-getting-error-when-mocking-fs-modules-and-calling-config-module...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
3.0k
views
1
answer
jestjs - Cannot mock fs with jest using typescript - Property 'mockReturnValue' does not exist on type
Problem: Would someone help me figure out how to mock fs with jest using typescript? I've tried a few ... -mock-fs-with-jest-using-typescript-property-mockreturnvalue-does-not...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.3k
views
1
answer
jestjs - jest coverageThreshold glob exclude some sub folders
Inside my ./src/app/global-team folder, there are a-z folders. I want to set my threshold level ... .com/questions/65894304/jest-coveragethreshold-glob-exclude-some-sub-folders...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.0k
views
1
answer
jestjs - Jest "No Environment is configured" problem when import a javascript file,which uses environemnt variables
I am using jest to write unit test for my javascript functions (running with nodejs), I am very new to ... no-environment-is-configured-problem-when-import-a-javascript-file-which...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
803
views
1
answer
jestjs - Test doesn't pass - project using typescript
I have a typescript project that I'm using TDD I have a test doesn't not pass I don't know how ... ://stackoverflow.com/questions/65911417/test-doesnt-pass-project-using-typescript...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.2k
views
1
answer
jestjs - Mocked async callback function is not called, the original is (Jest)
I struggle testing a callback function with Jest. Here is the function, simplified, taken from a NestJS project: ... -async-callback-function-is-not-called-the-original-is-jest...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
863
views
1
answer
jestjs - Jest - resetting value in module and reloading import
I'm writing a test in jest for a module which uses a constant from a different module. I want to set ... .com/questions/65917738/jest-resetting-value-in-module-and-reloading-import...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.2k
views
1
answer
jestjs - How to cast properly a mock function with Typescript
I'm trying to mock a function and use the benefits from Typescript but I can't find the best way to do ... /questions/65602161/how-to-cast-properly-a-mock-function-with-typescript...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
942
views
1
answer
jestjs - Create React App doesn't properly mock modules from __mocks__ directory
I have a working example with Jest and mocks from __mocks__ directory that works : With simple Jest setup // ... /create-react-app-doesnt-properly-mock-modules-from-mocks-directory...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.1k
views
1
answer
jestjs - Check browser console messages and response status codes in Playwright and Jest
I recently started writing end to end tests using Playwright and Jest packages. In a test I would like to ... -console-messages-and-response-status-codes-in-playwright-and-jest...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.2k
views
1
answer
jestjs - Mocking platform detection in Jest and React Native
Some of the code I am trying to test detects the platform, using, e.g.: import { Platform } from ' ... .com/questions/43161416/mocking-platform-detection-in-jest-and-react-native...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.9k
views
1
answer
jestjs - jest typescript property mock does not exist on type
When using jest.fn() to add a mock you can usually access the .mock property to access details such as ... /questions/52457575/jest-typescript-property-mock-does-not-exist-on-type...
asked
Oct 7, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.1k
views
1
answer
jestjs - Debugging Jest test cases using node-inspector
Is there a way to use node-inspector to debug unit tests with Jest? It would be nice to step ... .com/questions/25142173/debugging-jest-test-cases-using-node-inspector...
asked
Oct 6, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.2k
views
1
answer
jestjs - How to pass variable from beforeEach hook to tests in jest?
beforeEach(async () => { const sandbox = sinon.sandbox.create() ... }) test('/add', () => { // ... /questions/52397708/how-to-pass-variable-from-beforeeach-hook-to-tests-in-jest...
asked
Oct 6, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.2k
views
1
answer
jestjs - How to pass variable from beforeEach hook to tests in jest?
beforeEach(async () => { const sandbox = sinon.sandbox.create() ... }) test('/add', () => { // ... /questions/52397708/how-to-pass-variable-from-beforeeach-hook-to-tests-in-jest...
asked
Oct 6, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.1k
views
1
answer
jestjs - Jest coverage reporting on all committed files in create-react-app
Having difficulty with generating Jest coverage reports for all committed files in my create-react-app. Initially, code ... -reporting-on-all-committed-files-in-create-react-app...
asked
Oct 6, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.4k
views
1
answer
jestjs - create-react-app and jest - Cannot use import statement outside a module
I am using create-react-app. Running jest from the CLI causes this error (though in VS Code it shows in my ... -react-app-and-jest-cannot-use-import-statement-outside-a-module...
asked
Oct 6, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
998
views
1
answer
jestjs - Jest coverage reporting on all committed files in create-react-app
Having difficulty with generating Jest coverage reports for all committed files in my create-react-app. Initially, code ... -reporting-on-all-committed-files-in-create-react-app...
asked
Oct 6, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.4k
views
1
answer
jestjs - create-react-app and jest - Cannot use import statement outside a module
I am using create-react-app. Running jest from the CLI causes this error (though in VS Code it shows in my ... -react-app-and-jest-cannot-use-import-statement-outside-a-module...
asked
Oct 6, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.3k
views
1
answer
jestjs - How would I setup bamboo unit testing that runs both karma and jest
I have been trying to set up server-side testing for my application but have run into an issue with bamboo ... set up server-side testing separately in the .bamboorc file...
asked
Feb 19, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.3k
views
1
answer
jestjs - TypeScript Jest Matchers functions are typed any
Jest doesn't type some of its expect functions in Matchers. For example, it doesn't generate compiling errors for following ... and won't pass any way? Backward compatible? etc....
asked
Feb 19, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
985
views
1
answer
jestjs - i use the jest for testing my javascript project, while running the tests, showing the error
enter image description here here is jest.config.js enter image description here what is the error means, i can't ... my project, find nothing abound the function. please help me....
asked
Feb 19, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.1k
views
1
answer
jestjs - Azure PublishTestResults task fails to read Jest snapshot output
Below is a simplified snippet from my azure build pipeline: - task: Npm@1 name: ReactTests continueOnError: true inputs: ... so I'm surprised I can't find similar questions....
asked
Feb 19, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
0
votes
1.2k
views
1
answer
jestjs - sass/sass-true/jest not finding testfiles
I'm trying to unit test some sass functions with dart-sass and sass-true via jest. The node version I am ... file or directory Does anybody have a solution for this behavior?...
asked
Feb 19, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
jestjs
To see more, click for the
full list of questions
or
popular tags
.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question
Just Browsing Browsing
[1] auto populate certain words in wordpress pages
[2] python - check if a list subset of another list (values can be repetative)
[3] 怎么制作生产一些无用复杂的js 用于混淆视听
[4] 加载hdf5文件报错
[5] antd 的 Cascader,搜索结果为空时会自动选中当前活动节点
[6] python - How to randomly uppercase characters in a string?
[7] python - Django-wkhtmltopdf - dynamic templates
[8] 使用IIS部署nuxt.js项目的一些疑惑
[9] javascript - Mongoose updateOne() going through okay but not updating
[10] 问一个VUE的页面跳转问题
2.1m
questions
2.1m
answers
60
comments
57.0k
users
Most popular tags
javascript
python
c#
java
How
android
c++
php
ios
html
sql
r
c
node.js
.net
iphone
asp.net
css
reactjs
jquery
ruby
What
Android
objective
mysql
linux
Is
git
Python
windows
Why
regex
angular
swift
amazon
excel
algorithm
macos
Java
visual
how
bash
Can
multithreading
PHP
Using
scala
angularjs
typescript
apache
spring
performance
postgresql
database
flutter
json
rust
arrays
C#
dart
vba
django
wpf
xml
vue.js
In
go
Get
google
jQuery
xcode
jsf
http
Google
mongodb
string
shell
oop
powershell
SQL
C++
security
assembly
docker
Javascript
Android:
Does
haskell
Convert
azure
debugging
delphi
vb.net
Spring
datetime
pandas
oracle
math
Django
联盟问答网站-Union QA website
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
广告位招租
...