Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3f2cda0
packaje-lock updated + new gulp version installed
aleks-pro Apr 20, 2026
9f24a1a
markdownlint package removed
aleks-pro Apr 20, 2026
1a4eb7a
multer version updated
aleks-pro Apr 20, 2026
b4ace87
rollup version updated
aleks-pro Apr 20, 2026
b32ea3b
mocha-reporter-spec-with-retries package removed
aleks-pro Apr 22, 2026
9e426af
get rid of mocha-simple
aleks-pro Apr 22, 2026
cdd4128
sereialize-javascript removed from ovverides
aleks-pro Apr 22, 2026
16db2db
get rid of publish-please package
aleks-pro Apr 23, 2026
75b066a
eslint fixed in tests functional
aleks-pro Apr 24, 2026
babc627
node version in package json updated
aleks-pro Apr 24, 2026
76e3ac2
replicator package removed
aleks-pro May 4, 2026
b0f360a
get rid of eval in replicator
aleks-pro May 4, 2026
5dd5276
whitelist of error constructors added to replicator
aleks-pro May 4, 2026
d2f009c
eslint fix
aleks-pro May 4, 2026
22541f6
try to fix replicator tests
aleks-pro May 4, 2026
2f31f62
replicator removed from package-lock
aleks-pro May 4, 2026
7c8784c
try to fix server tests - replace chai startWith method with native JS
aleks-pro May 5, 2026
2344d02
fix server test
aleks-pro May 6, 2026
bfc76f7
.
aleks-pro May 6, 2026
94d72a3
lint fixed
aleks-pro May 6, 2026
3277000
try to fix tests in ff
aleks-pro May 6, 2026
b6a67ba
get rid of nanoid dependency in test
aleks-pro May 7, 2026
be46059
try to recover ff tests task
aleks-pro May 7, 2026
b13efed
reset evil flag in replicator test
aleks-pro May 7, 2026
c2c252e
use match assert instead of JS startsWith
aleks-pro May 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
runs-on: ubuntu-latest
environment: npmjs
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
Comment thread
aleks-pro marked this conversation as resolved.
with:
ref: ${{ github.event.release.target_commitish }}
- run: git fetch --force --tags
- uses: actions/setup-node@v4
- uses: DevExpress/testcafe-build-system/actions/publish@main
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run publish-please-only
pre-publish-script: gulp test-server
audit-level: critical
omit-dev-dependencies: true
Comment thread
aleks-pro marked this conversation as resolved.
branch: ${{ github.event.release.target_commitish }}
version: ${{ github.event.release.tag_name }}
docker-publish:
needs: npm-publish
runs-on: ubuntu-latest
Expand Down
14 changes: 0 additions & 14 deletions .publishrc

This file was deleted.

24 changes: 0 additions & 24 deletions @types/replicator/index.d.ts

This file was deleted.

16 changes: 8 additions & 8 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const gulp = require('gulp');
const gulpStep = require('gulp-step');
const data = require('gulp-data');
const less = require('gulp-less');
const mocha = require('gulp-mocha-simple');
const mustache = require('gulp-mustache');
const rename = require('gulp-rename');
const uglify = require('gulp-uglify');
Expand All @@ -28,6 +27,7 @@ const promisifyStream = require('./gulp/helpers/promisify-stream')
const testFunctional = require('./gulp/helpers/test-functional');
const moduleExportsTransform = require('./gulp/helpers/module-exports-transform');
const createPackageFilesForTests = require('./gulp/helpers/create-package-files-for-tests');
const { runCommands } = require('./gulp/helpers/run-shell-commands');

const {
TESTS_GLOB,
Expand Down Expand Up @@ -84,7 +84,7 @@ gulp.task('lint', () => {
'gulp/**/*.js',
'!test/client/vendor/**/*.*',
'!test/functional/fixtures/api/es-next/custom-client-scripts/data/*.js',
'Gulpfile.js',
'[Gg]ulpfile.js',
])
.pipe(eslint())
.pipe(eslint.format(process.env.ESLINT_FORMATTER))
Expand Down Expand Up @@ -254,7 +254,7 @@ gulp.step('clean-functional-tests', async () => {

gulp.step('prepare-tests', gulp.registry().get(SKIP_BUILD ? 'lint' : 'build'));

gulp.step('test-server-run', () => {
gulp.step('test-server-run', async () => {
const chai = require('chai');

chai.use(require('chai-string'));
Expand All @@ -264,11 +264,11 @@ gulp.step('test-server-run', () => {
const domains = exitDomains();

try {
return gulp
.src('test/server/*-test.js', { read: false })
.pipe(mocha({
timeout: getTimeout(4_000),
}));
const timeout = getTimeout(4_000) === Infinity ? 0 : getTimeout(4_000);

await runCommands([
`npx --no-install mocha --full-trace --timeout ${timeout} "test/server/*-test.js"`,
]);
}
finally {
enterDomains(domains);
Expand Down
19 changes: 19 additions & 0 deletions gulp/helpers/run-shell-commands.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const childProcess = require('child_process');

async function runCommands (commands) {
for (const command of commands) {
const commandExitCode = await new Promise((resolve, reject) => {
const child = childProcess.spawn(command, { shell: true, stdio: 'inherit' });

child.on('error', reject);
child.on('close', code => {
resolve(code ?? 1);
});
});

if (commandExitCode !== 0)
throw new Error(`Command "${command}" exited with code ${commandExitCode}`);
}
}

exports.runCommands = runCommands;
3 changes: 1 addition & 2 deletions gulp/helpers/test-functional.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ module.exports = async function testFunctional (src, testingEnvironmentName, { n
tests.unshift(SETUP_TESTS_GLOB);

const opts = {
reporter: 'mocha-reporter-spec-with-retries',
timeout: getTimeout(3 * 60 * 1000),
timeout: getTimeout(3 * 60 * 1000),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But without these retries blinking functional tests we'll be more annoying. I checked that mocha-reporter-spec-with-retries is only used in this repo, so we can move it into testcafe and it's not needed to duplicate it in other repos. What do you think?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but it doesn't look for me that we really use this feature. I can do this if you insist.

};

if (process.env.RETRY_FAILED_TESTS === 'true')
Expand Down
Loading
Loading