Skip to content

Implement a server for testing #157

@azu

Description

@azu

Some tests have been disabled in #156.

https://httpstat.us/ was out of service, so I think we should have a test server using Node.js in this repository instead.
textlint-tester can use mocha, so you should be able to set up a test like this

// http//localhost4323
describe("no-dead-link", () =>{
  let closeServer;
  before(() => {
    closeServer = await startServer(); // "/200", "/500" etc...
  });
  after(() => { 
    closeServer();
  })
  textlintTester.run(...
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: TestingAdding missing tests or correcting existing tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions