Skip to content

Commit f586b00

Browse files
committed
Actually test the types of all the packages
1 parent 6ce776a commit f586b00

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,34 @@
1+
/**
2+
* These tests are more fro the out-of-monorepo tests,
3+
* as we'll sever the references links to the source of each of these packages
4+
*
5+
* Just need to make sure each module has types at publish.
6+
*/
17
import { expectTypeOf } from 'expect-type';
28

39
import Debug from '@ember-data/debug';
410
import Store from '@ember-data/store';
11+
import Graph from '@ember-data/store';
12+
import RequestManager from '@ember-data/request';
13+
import { BuildURLMixin } from '@ember-data/adapter';
14+
import jsonapi from '@ember-data/json-api';
15+
import { adapterFor } from '@ember-data/legacy-compat';
16+
import Model from '@ember-data/model';
17+
import { setBuildURLConfig } from '@ember-data/request-utils';
18+
import Serializer from '@ember-data/serializer';
19+
import { createCache } from '@ember-data/tracking';
520

21+
// Most of this is to assure thet above imports don't get optimized away
22+
expectTypeOf<typeof import('ember-data')>().not.toBeAny();
23+
expectTypeOf<typeof import('ember-data').default>().toHaveProperty('reopen');
624
expectTypeOf<typeof Debug>().not.toBeAny();
725
expectTypeOf<typeof Store>().not.toBeAny();
26+
expectTypeOf<typeof Graph>().not.toBeAny();
27+
expectTypeOf<typeof Model>().not.toBeAny();
28+
expectTypeOf<typeof Serializer>().not.toBeAny();
29+
expectTypeOf<typeof RequestManager>().not.toBeAny();
30+
expectTypeOf<typeof BuildURLMixin>().not.toBeAny();
31+
expectTypeOf<typeof jsonapi>().not.toBeAny();
32+
expectTypeOf<typeof createCache>().not.toBeAny();
33+
expectTypeOf<typeof setBuildURLConfig>().not.toBeAny();
34+
expectTypeOf<typeof adapterFor>().not.toBeAny();

0 commit comments

Comments
 (0)