From 5b9eaee29f143bfd9445f7f926ab6b0861654af1 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Thu, 19 Oct 2023 09:15:39 +0200 Subject: [PATCH] fix: Use sed in ci --- playground/__tests__/import-on-boostrap.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playground/__tests__/import-on-boostrap.test.js b/playground/__tests__/import-on-boostrap.test.js index bab91fb..355ba63 100644 --- a/playground/__tests__/import-on-boostrap.test.js +++ b/playground/__tests__/import-on-boostrap.test.js @@ -7,7 +7,7 @@ jest.setTimeout(20000); afterAll(async () => { // Disable importOnBootstrap - await exec('gsed -i "s/importOnBootstrap: true/importOnBootstrap: false/g" config/plugins.js'); + await exec('sed -i "s/importOnBootstrap: true/importOnBootstrap: false/g" config/plugins.js'); await cleanupStrapi(); await exec('rm -rf config/sync'); @@ -20,7 +20,7 @@ describe('Test the importOnBootstrap feature', () => { await exec('rm -rf .tmp'); // Manually change the plugins.js to enable importOnBoostrap. - await exec('gsed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js'); + await exec('sed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js'); // Start up Strapi to initiate the importOnBootstrap function. await setupStrapi(); @@ -34,7 +34,7 @@ describe('Test the importOnBootstrap feature', () => { await exec('yarn cs export -y'); // Manually change the plugins.js to enable importOnBoostrap. - await exec('gsed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js'); + await exec('sed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js'); // Remove a config file to make sure the importOnBoostrap // function actually attempts to import.