Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Dec 27, 2023
1 parent 172df44 commit 19cc95d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions patches/codeceptjs+3.5.10.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/node_modules/codeceptjs/lib/command/workers/runTests.js b/node_modules/codeceptjs/lib/command/workers/runTests.js
index 430a7b4..b47593d 100644
index 430a7b4..a2ea9e4 100644
--- a/node_modules/codeceptjs/lib/command/workers/runTests.js
+++ b/node_modules/codeceptjs/lib/command/workers/runTests.js
@@ -141,6 +141,14 @@ function initializeListeners() {
@@ -141,11 +141,19 @@ function initializeListeners() {
const _steps = [];

for (step of steps) {
Expand All @@ -17,3 +17,9 @@ index 430a7b4..b47593d 100644
_steps.push({
actor: step.actor,
name: step.name,
status: step.status,
- agrs: step.args,
+ agrs: _args,
startedAt: step.startedAt,
startTime: step.startTime,
endTime: step.endTime,
2 changes: 1 addition & 1 deletion test/acceptance_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { exec } = require('child_process');
const { expect } = require('chai');

const runner = './node_modules/.bin/codeceptjs run-workers 2 rp_plugin_test.js';
const configFilePath = './test/codecept.conf.ts';
const configFilePath = './test/codecept.conf.js';

describe('RP Plugin - Codeceptjs Integration', () => {
describe('Passed test', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/bdd_acceptance_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { exec } = require('child_process');
const { expect } = require('chai');

const runner = './node_modules/.bin/codeceptjs run-workers 2 features/basic.feature';
const configFilePath = './test/codecept.conf.ts';
const configFilePath = './test/codecept.conf.js';

describe('RP Plugin - Codeceptjs Integration - BDD Feature', () => {
describe('Passed test', () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/rp_plugin_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feature('RP Plugin tests');

async function createNewUser(userData) {
let payload = userData || {
name: faker.name.firstName(),
name: Date.now(),
job: 'leader'
};

Expand Down

0 comments on commit 19cc95d

Please sign in to comment.