import.spec.ts 307 B

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