import-package-json.spec.ts 314 B

1234567891011
  1. import path from 'path';
  2. import { importPackageJson } from './import-package-json';
  3. it('importPackageJson() returns an object', async() => {
  4. // when
  5. const pkg = importPackageJson(path.resolve(__dirname, '../../../../../test/fixtures/example-package/template1'));
  6. // then
  7. expect(pkg).not.toBeNull();
  8. });