Skip to content

Releases: japa/core

Fixing skip in CI

04 Sep 08:49
Compare
Choose a tag to compare
  • chore(package): update dependencies d83c47c

v3.0.0...v3.0.1

Dropping support for Node 8&9

28 Aug 09:37
Compare
Choose a tag to compare

Moving forward, Japa support Node.js 10.15.3 and above. It was required to keep the dependencies up to date and free from vulnerabilities.

  • chore: remove typedoc single line plugin 17c5dfb
  • chore: remove nyc a332007
  • chore: add np for releases 9a39531
  • ci: remove travis in favor of circle 3484f3a
  • chore(package): update dependencies 598d7d3

2.0.10...v3.0.0

Big bang re-write 🎉

22 Sep 14:54
Compare
Choose a tag to compare

Japa 2.0 is out with a Big Bang re-write. The end-user API is more or less same. However, the core has been moved to Typescript and is smaller, and faster than earlier.

Big wins

  • Moved to Typescript. Which means, now you can enjoy autocomplete when writing tests.

    japa-autocomplete

  • The core is simpler, leaner and marginally faster than the older versions.

  • In-built support to run multiple test files, without any CLI.

Improvements

  • The flow of tests and hooks is more streamlined and explained here.

  • Now tests relying on done callback, can also use the await keyword.

    test('process one job at a time', async (assert, done) => {
      queue.on('job', (data) => {
        assert.deepEqual(data, {})
        done()
      })
    
      await queue.run()
    })
  • Better support for grep. Earlier it has to be a substring of the test title. Now you can define RegExp too.

    const { configure } = require('japa')
    
    configure({
      grep: 'users'
    })
    
    // or regex like string
    configure({
      grep: 'user(s)?'
    })
    
    // even regex
    configure({
      grep: /user(s)?/
    })

Breaking changes

  • The need of japa-cli has been removed. We recommend using a master test file and configure the tests using the configure method.
  • Calling test.timeout at a global level doesn't work anymore and again the configure method can be used to define the global timeout for all the tests.
  • The module japa/cli has been removed. This was used by the CLI to interact with the Japa core and hence is not required.
  • The structure of japa/api has been changed too.

First Version

19 Jan 21:11
Compare
Choose a tag to compare

The first version with all the goodness