214 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
33
views
Quarkus ClassNotFoundException for DTO in Shared Library After Idle Period
I’m building a multi-service architecture with a shared Gradle setup. Here's how my project is structured:
Root Gradle Project: Manages shared dependencies and configurations.
Child Gradle Projects: ...
user avatar
user16993210
0
votes
1
answer
95
views
Use azure maven artifacts for release pipeline
I am having required maven jars at azure artifacts. From there, I have to use and execute my maven project which is java selenium project.
I am going to run my maven project via azure pipelines. I ...
0
votes
1
answer
60
views
API tests are all passing, but still giving a time-out error
I am trying to unit test all of my API calls. Every call passes the test, but i still get an error saying: ✘ Timed out while running tests Failed to exit when running test.js. I have tried adding a ...
0
votes
1
answer
75
views
sinon stub error with ava " Attempted to wrap myFunction which is already wrapped" despite using sinon.sandbox
I'm encountering an issue with Sinon while running my tests in parallel mode using Ava. Whenever I run my tests with ava --parallel, I get the following error:
beforeEach hook for myfile
Error thrown ...
0
votes
0
answers
612
views
Handling Deprecated AuthorizationServerConfigurerAdapter in Spring Security OAuth
I'm currently working on implementing an Authorization Server using Spring Security OAuth. While configuring the OAuth server, I've encountered that the AuthorizationServerConfigurerAdapter class ...
1
vote
1
answer
34
views
Testing Mongoose Models using AVA
I've been trying to test mongoose models using AVA.
As validation errors tend not to be type errors I tried various things and came to this working way:
The Model
// Model
// Require Mongoose
...
1
vote
0
answers
118
views
AVA test with JSDOM: Cannot set property window of #<Object> which has only a getter
I want to test in AVA a method that use global "document", eg.
export const blurActiveElement = (): void => {
if (typeof window.focus === 'function') {
window.focus();
}
...
1
vote
0
answers
123
views
Run AVA tests with .js extensions as ES Modules
I have a JavaScript project where the frontend uses ES Modules (built with babel / webpack) and the backend uses CommonJS modules. All files use the .js extension. Given this mix and the file ...
0
votes
0
answers
285
views
Near: Querying [object Object] failed: wasm execution failed with error: FunctionCallError
I'm trying to develop a project on near blockchain. After writing the smart contract, I wanted to perform integration tests on it. But it failed. So I created a new project with the default rust code ...
1
vote
0
answers
470
views
How to mock ClientProxy microservice for nestjs in ava test framework
I am trying to give the mock data in ClientProxy but I am keep on receiving null. It could be because of returning Observable. But I cannot figure it out how to properly mock the result.
I am using ...
4
votes
3
answers
3k
views
How to mock or stub process.argv
How do I mock or stub process.argv so that it can return a specific argument?
I tried using Sinon.js like this:
beforeEach(
() => {
sandbox.stub(
process.argv.slice(2)[0], 'C:\\home\\...
0
votes
0
answers
112
views
Ternary Operator Testing With Ava or Sinon
I have a variable like this:
const domain_issuer = "some array of domains"
const url_setter = domain_issuer !== null ? domain_issuer[0] : '';
the domain_issuer is grabbing the domains from ...
3
votes
1
answer
280
views
Is it possible to test that a css style property exists for a React component using enzyme + ava?
I'm looking to test that a component has an opacity value of 0 after firing an event, I have not found how to get/check for a specific css property with enzyme (enzyme docs), is it even possible to do ...
sab's user avatar
- 1,547
1
vote
1
answer
1k
views
How to set positional arguments via npm test script in package.json file?
I'm running AVA test now and I have 3 positional arguments that will be passed when running the command.
For example:
npm test <arg1> <arg2> <arg3>
But I wish to put the first 2 ...
37
votes
5
answers
124k
views
How to pause the test script for 3 seconds before continue running it? Playwright
I'm running a test called create admin. The test will first create admin, then check if the admin was created successfully.
In the script, I have a part of code where I want to wait for 3 seconds ...