Giter Club home page Giter Club logo

gatsby-remark-rewrite-relative-links's Introduction

gatsby-remark-rewrite-relative-links

gatsby-remark-rewrite-relative-links's People

Contributors

dependabot[bot] avatar trevorblades avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

onflow

gatsby-remark-rewrite-relative-links's Issues

Tests fail

$ npm install
$ npm test

> [email protected] pretest /Users/me/gh/gatsby-remark-rewrite-relative-links
> eslint src/*


> [email protected] test /Users/me/gh/gatsby-remark-rewrite-relative-links
> jest

 FAIL  src/test.ts
  โ— Test suite failed to run

    TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):
    src/test.ts:8:26 - error TS2345: Argument of type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: string
; }' is not assignable to parameter of type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.
      Property 'getNode' is missing in type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: string; }' but r
equired in type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.

      8     const mdast = plugin({
                                 ~
      9       markdownAST: root([mdLink]),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
     15       pathPrefix: ''
        ~~~~~~~~~~~~~~~~~~~~
     16     });
        ~~~~~
    src/test.ts:32:26 - error TS2345: Argument of type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: strin
g; }' is not assignable to parameter of type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.
      Property 'getNode' is missing in type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: string; }' but r
equired in type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.

     32     const mdast = plugin({
                                 ~
     33       markdownAST: root([sibling, uncle]),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
     39       pathPrefix: ''
        ~~~~~~~~~~~~~~~~~~~~
     40     });
        ~~~~~
    src/test.ts:59:26 - error TS2345: Argument of type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: string; }' is not assignable to parameter of type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.
      Property 'getNode' is missing in type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: string; }' but required in type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.

     59     const mdast = plugin({
                                 ~
     60       markdownAST: root([mdLink]),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
     66       pathPrefix: '/my-prefix'
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     67     });
        ~~~~~
    src/test.ts:82:26 - error TS2345: Argument of type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: string; }' is not assignable to parameter of type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.
      Property 'getNode' is missing in type '{ markdownAST: Parent; markdownNode: { fields: { slug: string; }; }; pathPrefix: string; }' but required in type '{ markdownAST: any; markdownNode: any; pathPrefix: any; getNode: any; }'.

     82     const mdast = plugin({
                                 ~
     83       markdownAST: root([mdLink]),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
     89       pathPrefix: ''
        ~~~~~~~~~~~~~~~~~~~~
     90     });
        ~~~~~

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        2.041s
Ran all test suites.
npm ERR! Test failed.  See above for more details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.