-
Notifications
You must be signed in to change notification settings - Fork 1
/
lib.test.ts
52 lines (50 loc) · 2.47 KB
/
lib.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { expect, test } from 'vitest';
import * as lib from './lib';
test('module exports', () => {
expect({ ...lib }).toEqual({
AccessorKey: lib.AccessorKey,
AccessorReference: lib.AccessorReference,
areAccessorKeysEqual: lib.areAccessorKeysEqual,
areLiteralsEqual: lib.areLiteralsEqual,
ast: lib.ast,
createNamedPropertyKey: lib.createNamedPropertyKey,
createPropertyKey: lib.createPropertyKey,
createStaticPropertyKey: lib.createStaticPropertyKey,
findClassMemberAccessorExpressions: lib.findClassMemberAccessorExpressions,
findClassMemberAccessors: lib.findClassMemberAccessors,
findNamedClassMemberAccessorExpressions: lib.findNamedClassMemberAccessorExpressions,
findNamedModuleImport: lib.findNamedModuleImport,
generate: lib.generate,
generateUniqueScopeBinding: lib.generateUniqueScopeBinding,
getAccessorExpressionPaths: lib.getAccessorExpressionPaths,
getAstNodeChildEntries: lib.getAstNodeChildEntries,
getFunctionReturnValues: lib.getFunctionReturnValues,
getImportSpecifierImportedName: lib.getImportSpecifierImportedName,
getLiteralPropertyKey: lib.getLiteralPropertyKey,
getLocatedPath: lib.getLocatedPath,
getModuleRoot: lib.getModuleRoot,
getNamedModuleImportExpression: lib.getNamedModuleImportExpression,
getNamedObjectLiteralStaticProperty: lib.getNamedObjectLiteralStaticProperty,
getNamedObjectLiteralStaticPropertyValue: lib.getNamedObjectLiteralStaticPropertyValue,
getNamedPackageNamespaceImportExpression: lib.getNamedPackageNamespaceImportExpression,
getNodeChildEntries: lib.getNodeChildEntries,
getNodePropertyFieldNames: lib.getNodePropertyFieldNames,
getObjectLiteralStaticPropertyValues: lib.getObjectLiteralStaticPropertyValues,
getOptionalNodeFieldValue: lib.getOptionalNodeFieldValue,
getStaticPropertyKey: lib.getStaticPropertyKey,
hasNamedObjectLiteralStaticProperty: lib.hasNamedObjectLiteralStaticProperty,
insertNamedModuleImport: lib.insertNamedModuleImport,
matchModuleImportName: lib.matchModuleImportName,
matchModuleImportPackageName: lib.matchModuleImportPackageName,
matchNamedPropertyKeyExpression: lib.matchNamedPropertyKeyExpression,
matchNode: lib.matchNode,
node: lib.node,
parseAst: lib.parseAst,
parseStringExpressionValue: lib.parseStringExpressionValue,
pattern: lib.pattern,
replace: lib.replace,
template: lib.template,
transformAst: lib.transformAst,
traverse: lib.traverse,
});
});