gatsby-plugin-utils
Version:
Gatsby utils that help creating plugins
14 lines (11 loc) • 464 B
text/typescript
import { isGatsbyNodeLifecycleSupported } from "../node-api-is-supported"
describe(`isGatsbyNodeLifecycleSupported`, () => {
it(`returns true for supported API (createSchemaCustomization)`, () => {
expect(isGatsbyNodeLifecycleSupported(`createSchemaCustomization`)).toEqual(
true
)
})
it(`returns false for unsupported API (thisIsNotSupported)`, () => {
expect(isGatsbyNodeLifecycleSupported(`thisIsNotSupported`)).toEqual(false)
})
})