Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.4] Move the Cypress Tests to ESM #43676

Merged
merged 12 commits into from
Jun 24, 2024
Prev Previous commit
Next Next commit
Fix path.join
  • Loading branch information
LadySolveig committed Jun 20, 2024
commit c3210c552d0aca943bd9606e399de6b3587661e4
4 changes: 2 additions & 2 deletions tests/System/plugins/fs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { umask } from 'node:process';
*/
function deleteRelativePath(relativePath, config) {
const fullPath = dirname.join(config.env.cmsPath, relativePath);
fs.rmSync(fullPath, { recursive: true, force: true });
rmSync(fullPath, { recursive: true, force: true });

return null;
}
Expand All @@ -34,7 +34,7 @@ function deleteRelativePath(relativePath, config) {
* @returns null
*/
function writeRelativeFile(relativePath, content, config, mode = 0o444) {
const fullPath = dirname.join(config.env.cmsPath, relativePath);
const fullPath = path.join(config.env.cmsPath, relativePath);
// Prologue: Reset process file mode creation mask to ensure the umask value is not subtracted
const oldmask = umask(0);
// Create missing parent directories with 'rwxrwxrwx'
Expand Down