Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Jul 15, 2024
1 parent f2c89fd commit d43ce54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion script/npm_test_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function runChildProcess(args, pluginPath) {
}
const runTests = async () => {
var dirs = packageJsonDirs();
console.log('dirs', dirs);
function pluginDefinesLint(pluginPath) {
var packageHasNodeModules = fs.existsSync(`${pluginPath}/node_modules`); // skip gems
var packageData = JSON.parse(fs.readFileSync(`${pluginPath}/package.json`));
Expand Down Expand Up @@ -125,7 +126,7 @@ const runTests = async () => {
'--color',
...passedArgs,
];

console.log('args', args);

Check failure on line 129 in script/npm_test_plugin.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 14)

Insert `······`

Check failure on line 129 in script/npm_test_plugin.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 18)

Insert `······`

Check failure on line 129 in script/npm_test_plugin.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 14)

Insert `······`

Check failure on line 129 in script/npm_test_plugin.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 18)

Insert `······`
// eslint-disable-next-line no-await-in-loop
await runChildProcess(args, pluginPath); // Run every plugin test in a separate process
if (fs.existsSync(combinedConfigPath)) {
Expand Down
7 changes: 5 additions & 2 deletions script/plugin_webpack_directories.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ var webpackedDirs = stderr => {
});
};

var getPluginDirs = stderr =>
JSON.parse(sanitizeWebpackDirs(webpackedDirs(stderr)));
var getPluginDirs = stderr =>{

Check failure on line 50 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 14)

Insert `·`

Check failure on line 50 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 18)

Insert `·`

Check failure on line 50 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 14)

Insert `·`

Check failure on line 50 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 18)

Insert `·`

Check failure on line 51 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 14)

Replace `⏎` with `··`

Check failure on line 51 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 18)

Replace `⏎` with `··`

Check failure on line 51 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 14)

Replace `⏎` with `··`

Check failure on line 51 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 18)

Replace `⏎` with `··`
console.log('webpackedDirs', webpackedDirs(stderr));

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 14)

Unexpected console statement

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 14)

You have a misspelled word: webpacked on String

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 18)

Unexpected console statement

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 18)

You have a misspelled word: webpacked on String

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 14)

Unexpected console statement

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 14)

You have a misspelled word: webpacked on String

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 18)

Unexpected console statement

Check warning on line 52 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 18)

You have a misspelled word: webpacked on String
return JSON.parse(sanitizeWebpackDirs(webpackedDirs(stderr)));
}

Check failure on line 54 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 14)

Insert `;`

Check failure on line 54 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 3.0, 18)

Insert `;`

Check failure on line 54 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 14)

Insert `;`

Check failure on line 54 in script/plugin_webpack_directories.js

View workflow job for this annotation

GitHub Actions / test (13, 2.7, 18)

Insert `;`

var packageJsonDirs = stderr =>
pluginPath('package.json')(getPluginDirs(stderr)).map(path.dirname);
Expand Down

0 comments on commit d43ce54

Please sign in to comment.