fix(linter): adjust terminal run check for crystal (#21638)
This commit is contained in:
parent
ab5137c639
commit
f79aabba46
@ -462,8 +462,7 @@ describe('Linter', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// TODO(crystal, @meeroslav): Investigate why this is failing
|
||||
xit('should report dependency check issues', () => {
|
||||
it('should report dependency check issues', () => {
|
||||
const rootPackageJson = readJson('package.json');
|
||||
const nxVersion = rootPackageJson.devDependencies.nx;
|
||||
const tslibVersion = rootPackageJson.dependencies['tslib'];
|
||||
@ -476,7 +475,7 @@ describe('Linter', () => {
|
||||
`libs/${mylib}/src/lib/${mylib}.ts`,
|
||||
(content) =>
|
||||
`import { names } from '@nx/devkit';\n\n` +
|
||||
content.replace(/=> .*;/, `=> names(${mylib}).className;`)
|
||||
content.replace(/=> .*;/, `=> names('${mylib}').className;`)
|
||||
);
|
||||
|
||||
// output should now report missing dependency
|
||||
|
||||
@ -416,7 +416,7 @@ export function hasBuildExecutor(
|
||||
);
|
||||
}
|
||||
|
||||
const ESLINT_REGEX = /node_modules.*[\/\\]eslint$/;
|
||||
const ESLINT_REGEX = /node_modules.*[\/\\]eslint(?:\.js)?$/;
|
||||
const JEST_REGEX = /node_modules\/.bin\/jest$/; // when we run unit tests in jest
|
||||
const NRWL_CLI_REGEX = /nx[\/\\]bin[\/\\]run-executor\.js$/;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user