Skip to content

Commit

Permalink
test: 💍 (librarysplit) fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
nivekcode committed Sep 1, 2021
1 parent 5d040fd commit 71189e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/library-split/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ describe('split', () => {

describe('tsconfig', () => {
function deletePathsFromTsconfig() {
const tsconfigContent = JSON.parse(appTree.readContent('tsconfig.json'));
const tsconfigContent = JSON.parse(
appTree
.read('tsconfig.json')
.toString()
.replace(/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm, '')
);
delete tsconfigContent.compilerOptions.paths;
appTree.overwrite('tsconfig.json', JSON.stringify(tsconfigContent));
}
Expand Down
1 change: 0 additions & 1 deletion src/subentry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { strings } from '@angular-devkit/core';
import { parseName } from '@schematics/angular/utility/parse-name';

import { Schema as SubentryOptions } from './schema.model';
import { ModuleOptions } from '@schematics/angular/utility/find-module';

export function generateSubentry(_options: SubentryOptions): Rule {
return (tree: Tree, _context: SchematicContext) => {
Expand Down

0 comments on commit 71189e1

Please sign in to comment.