|
| 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 | + */ |
1 | 7 | import { expectTypeOf } from 'expect-type';
|
2 | 8 |
|
3 | 9 | import Debug from '@ember-data/debug';
|
4 | 10 | 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'; |
5 | 20 |
|
| 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'); |
6 | 24 | expectTypeOf<typeof Debug>().not.toBeAny();
|
7 | 25 | 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