feat: 100% jscodeshift-compatible API (#3) #7
Annotations
10 errors
|
__tests__/transform.test.ts > imports.addImport > adds a named import at top of file:
packages/zmod/__tests__/transform.test.ts#L154
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/transform.test.ts:154:29
|
|
__tests__/transform.test.ts > imports.removeSpecifier > removes entire import when all specifiers removed:
packages/zmod/__tests__/transform.test.ts#L140
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/transform.test.ts:140:29
|
|
__tests__/transform.test.ts > imports.removeSpecifier > removes a named import specifier from multi-specifier import:
packages/zmod/__tests__/transform.test.ts#L125
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/transform.test.ts:125:29
|
|
__tests__/transform.test.ts > imports.renameSpecifier > renames combined with replaceSource:
packages/zmod/__tests__/transform.test.ts#L111
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/transform.test.ts:111:29
|
|
__tests__/transform.test.ts > imports.renameSpecifier > renames only the local part of an aliased import:
packages/zmod/__tests__/transform.test.ts#L97
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/transform.test.ts:97:29
|
|
__tests__/transform.test.ts > imports.renameSpecifier > renames a named import specifier:
packages/zmod/__tests__/transform.test.ts#L85
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/transform.test.ts:85:29
|
|
__tests__/transform.test.ts > imports.replaceSource > replaces import source string:
packages/zmod/__tests__/transform.test.ts#L61
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/transform.test.ts:61:29
|
|
__tests__/fixtures.test.ts > react codemod fixtures > fixture: replace-react-prop-types:
packages/zmod/__tests__/fixtures.test.ts#L30
AssertionError: expected 'import React from "react";\n\nconst M…' to be 'import PropTypes from "prop-types";\n…' // Object.is equality
- Expected
+ Received
@@ -1,6 +1,5 @@
- import PropTypes from "prop-types";
import React from "react";
const MyComponent = ({ name }: { name: string }) => {
return <div>{name}</div>;
};
❯ __tests__/fixtures.test.ts:30:29
|
|
__tests__/fixtures.test.ts > react codemod fixtures > fixture: replace-act-import:
packages/zmod/__tests__/fixtures.test.ts#L29
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/fixtures.test.ts:29:31
|
|
__tests__/fixtures.test.ts > react codemod fixtures > fixture: remove-context-provider:
packages/zmod/__tests__/fixtures.test.ts#L29
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ __tests__/fixtures.test.ts:29:31
|