UNPKG

@kv-systems/ng-packagr

Version:

Compile and package Angular libraries in Angular Package Format (APF)

21 lines (17 loc) 556 B
import { expect } from 'chai'; import * as fs from 'fs-extra'; import * as path from 'path'; describe(`@sample/api`, () => { describe('angular.component.d.ts.map', () => { let sourceMap; beforeAll(() => { sourceMap = fs.readJsonSync(path.resolve(__dirname, '../dist/src/angular.component.d.ts.map')); }); it(`should exist`, () => { expect(sourceMap).to.be.ok; }); it('should point to the correct source path', () => { expect(sourceMap.sources[0]).to.equal('../../src/angular.component.ts'); }); }); });