diff --git a/playground/__tests__/import-on-boostrap.test.js b/playground/__tests__/import-on-boostrap.test.js index 355ba63..bab91fb 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('sed -i "s/importOnBootstrap: true/importOnBootstrap: false/g" config/plugins.js'); + await exec('gsed -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('sed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js'); + await exec('gsed -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('sed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js'); + await exec('gsed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js'); // Remove a config file to make sure the importOnBoostrap // function actually attempts to import.