fix: Use sed in ci

pull/111/head
Boaz Poolman 2023-10-19 09:15:39 +02:00
parent 81f22c6c93
commit 5b9eaee29f
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ jest.setTimeout(20000);
afterAll(async () => { afterAll(async () => {
// Disable importOnBootstrap // 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 cleanupStrapi();
await exec('rm -rf config/sync'); await exec('rm -rf config/sync');
@ -20,7 +20,7 @@ describe('Test the importOnBootstrap feature', () => {
await exec('rm -rf .tmp'); await exec('rm -rf .tmp');
// Manually change the plugins.js to enable importOnBoostrap. // 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. // Start up Strapi to initiate the importOnBootstrap function.
await setupStrapi(); await setupStrapi();
@ -34,7 +34,7 @@ describe('Test the importOnBootstrap feature', () => {
await exec('yarn cs export -y'); await exec('yarn cs export -y');
// Manually change the plugins.js to enable importOnBoostrap. // 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 // Remove a config file to make sure the importOnBoostrap
// function actually attempts to import. // function actually attempts to import.