Skip to content

Update dependency ava to v3.12.1#893

Merged
kristoferbaxter merged 3 commits intoampproject:mainfrom
renovate-bot:renovate/ava-3.x
Sep 8, 2020
Merged

Update dependency ava to v3.12.1#893
kristoferbaxter merged 3 commits intoampproject:mainfrom
renovate-bot:renovate/ava-3.x

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

@renovate-bot renovate-bot commented Aug 11, 2020

This PR contains the following updates:

Package Type Update Change
ava (source) devDependencies minor 3.8.2 -> 3.12.1

Release Notes

avajs/ava

v3.12.1

Compare Source

Configure how AVA loads test files

Normally, AVA loads all files as CommonJS, except for mjs files and if you've configured "type": "module" in your package.json.

As an experiment, you can now configure how AVA loads other file extensions. This is useful if you want to use Node.js' experimental loaders feature. Read more in our documentation. Thank you @​macarie for working on this! 5c9dbb9

Comparison bugfix

There was a bug in our comparison library which meant that negative-index properties on lists were not compared. This was fixed in a patch release, which will definitely be installed when you install AVA 3.12. Your tests may have been passing, even though they should have been failing. They'll fail now. Snapshots may also be different, causing tests to fail.

All changes

See avajs/ava@v3.11.1...v3.12.1 for all changes.

Thank you @​AnthumChris for making sure our ESM example used ESM syntax (20bc781).

v3.12.0

Compare Source

v3.11.1

Compare Source

This release fixes corrupted output of the default reporter when test or program code writes to standard out. 5ddc9fd

Also, thanks to @​jonathansamines we've taken another step to using AVA to test AVA. 1150991

See avajs/ava@v3.11.0...v3.11.1 for all changes.

v3.11.0

Compare Source

New t.like() assertion

Thanks to @​futpib we now have a t.like() assertion 19c4f35:

In the following example, the map property of value must be deeply equal to that of selector. However nested.qux is ignored, because it's not in selector.

t.like({
	map: new Map([['foo', 'bar']]),
	nested: {
		baz: 'thud',
		qux: 'quux'
	}
}, {
	map: new Map([['foo', 'bar']]),
	nested: {
		baz: 'thud',
	}
})

Read more in the t.like() assertion documentation.

This assertion was previously introduced as an experiment.

VSCode 1.47 debugging improvements

You can now debug tests using the new JavaScript Debug Terminal in VSCode 1.47. We've updated our debugging recipe accordingly. Thank you @​connor4312 for the documentation updates and your work on VSCode! bc39bcc

All changes

See avajs/ava@v3.10.1...v3.11.0 for all changes.

v3.10.1

Compare Source

It's time for another AVA release 🎉
Restricting when you can update snapshots

When executing a subset of tests, through --match or or .only() or .skip(), you can no longer also update snapshots. This prevents you from accidentally deleting snapshots. Thank you @​bunysae for putting this together. f72fab4

If you are skipping a test that you can't immediately fix, but you still need to update snapshots, use .failing() instead.

Support for message strings in t.timeout() calls

Thanks to @​jonathansamines you can now provide a message string when using t.timeout(). This can be useful if your test depends on some other setup that may not have been completed: ca8ea45

test('foo', t => {
	t.timeout(100, 'make sure database has started');
	// Write your assertions here
});
t.try() does not work in hooks

t.try() has never worked in hooks, but thanks to @​okyantoro it now fails properly instead of crashing. d01db61

t.snapshot() does not really work in hooks either

t.snapshot() sort of works in hooks, but we'll be removing this in AVA 4. You can opt in to this behavior by enabling the disableSnapshotsInHooks experiment. Again thank you @​okyantoro d01db61.

Fixed TypeScript definition for t.like()

The experimental t.like() assertion should now work better with TypeScript.

All changes

See avajs/ava@v3.9.0...v3.10.1 for all changes.

v3.10.0

Compare Source

v3.9.0

Compare Source

New experiments!

Thanks to @​futpib we now have an experimental t.like() assertion 19c4f35:

In the following example, the map property of value must be deeply equal to that of selector. However nested.qux is ignored, because it's not in selector.

t.like({
	map: new Map([['foo', 'bar']]),
	nested: {
		baz: 'thud',
		qux: 'quux'
	}
}, {
	map: new Map([['foo', 'bar']]),
	nested: {
		baz: 'thud',
	}
})

Read more in the t.like() assertion documentation and let us know what you think.

@​yjpa7145 has contributed an experiment to reverse the order in which t.teardown() functions are run, so that the last registered function is called first 952a017. This will be the behavior in AVA 4.

To enable both these experiments update your AVA configuration:

package.json:

{
	"ava": {
		"nonSemVerExperiments": {
			"likeAssertion": true,
			"reverseTeardowns": true
		}
	}
}

ava.config.js:

export default {
	nonSemVerExperiments: {
		likeAssertion: true,
		reverseTeardowns: true
	}
}
Reporter changes

@​Michael55555 has helped us combine our reporter code into a single file b3866b6. We've also made some other tweaks and improvements baaf99a. Let us know if anything seems amiss.

Improved diffs

@​bunysae made it so that missing or extraneous objects in diffs are printed with extra depth concordancejs/concordance#​62.

Farewell Node.js 13

Node.js 13 has reached end-of-life. Per our support statement we have removed it from our test matrix and supported version list.

All changes

See avajs/ava@v3.8.2...v3.9.0 for all changes. Thank you @​paulrobertlloyd and @​Autre31415 for contributing documentation improvements.


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@google-cla google-cla bot added the cla: yes label Aug 11, 2020
@renovate-bot renovate-bot changed the title Update dependency ava to v3.11.1 Update dependency ava to v3.12.0 Aug 23, 2020
@renovate-bot renovate-bot changed the title Update dependency ava to v3.12.0 Update dependency ava to v3.12.1 Aug 24, 2020
@kristoferbaxter kristoferbaxter merged commit 0db9098 into ampproject:main Sep 8, 2020
valleykid added a commit to icatjs/worker-dom that referenced this pull request Sep 9, 2020
* update to latest version of np (ampproject#915)

* update to latest version of np

* also update jsdom, some strange errors occuring with whatwg-url

* Mention that innerHTML has partial support (ampproject#911)

* Pin dependency jsdom to 16.4.0 (ampproject#916)

* Update Yarn to v1.22.5 (ampproject#918)

* Update dependency rollup-plugin-terser to v7 (ampproject#907)

* Update dependency rollup to v2.26.8 (ampproject#899)

* Update dependency acorn-walk to v8 (ampproject#922)

* HTMLElement.click() support (ampproject#919)

* HTMLElement: Support .click() function.

* HTMLElement.click() support

* update web compat table.

* Update dependency acorn to v8 (ampproject#908)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update dependency typescript to v4 (ampproject#923)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update dependency np to v6.5.0 (ampproject#921)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Support Dirty Flag for HTMLInputElement.value (ampproject#913)

* v0.25.1

* Support dirty flag for HTMLInputElement.value

* Support dirty flag for HTMLInputElement.value

* add a test

* fix progress

* update test for progress as well

* Bump size of worker.mjs

* Remove populated demo examples since tests now cover the functionality

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update Node.js to v14.9.0 (ampproject#889)

* v0.26.0 (ampproject#925)

* Update dependency rollup to v2.26.9 (ampproject#924)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency prettier to v2.1.1 (ampproject#920)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency css-loader to v4 (ampproject#906)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency webpack-cli to v3.3.12 (ampproject#905)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency webpack to v4.44.1 (ampproject#904)

* Update dependency tslint to v6.1.3 (ampproject#902)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Remove esmodule syntax (ampproject#927)

* v0.25.1

* Remove ESModules Package syntax since its not being used

* Use toUpper utility (ampproject#928)

* v0.25.1

* Use the utilities instead of direct methods

* Update dependency sirv to v1.0.6 (ampproject#901)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency sinon to v9.0.3 (ampproject#900)

* Update dependency rollup to v2.26.11 (ampproject#931)

* Update dependency css-loader to v4.3.0 (ampproject#934)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Refactor output (ampproject#929)

* v0.25.1

* Create production and debug outputs for AMP

* tweak tracked resources for filesize

* Additional tracking for nodom variant

* Update dependency husky to v4.3.0 (ampproject#933)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update Dependencies (ampproject#935)

* v0.25.1

* Update to latest versions

* Bump version + skip hooks for release (ampproject#936)

* v0.27.0

* skip hooks on release

* v0.27.1

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update Node.js to v14.10.0 (ampproject#930)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency preact to v10.4.8 (ampproject#898)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency mini-css-extract-plugin to v0.11.1 (ampproject#897)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency ava to v3.12.1 (ampproject#893)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency lint-staged to v10.3.0 (ampproject#896)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Ben Morss <morss@google.com>
Co-authored-by: WhiteSource Renovate <bot@renovateapp.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>
valleykid added a commit to icatjs/worker-dom that referenced this pull request Sep 9, 2020
* feat: sync from base-source (#1)

* update to latest version of np (ampproject#915)

* update to latest version of np

* also update jsdom, some strange errors occuring with whatwg-url

* Mention that innerHTML has partial support (ampproject#911)

* Pin dependency jsdom to 16.4.0 (ampproject#916)

* Update Yarn to v1.22.5 (ampproject#918)

* Update dependency rollup-plugin-terser to v7 (ampproject#907)

* Update dependency rollup to v2.26.8 (ampproject#899)

* Update dependency acorn-walk to v8 (ampproject#922)

* HTMLElement.click() support (ampproject#919)

* HTMLElement: Support .click() function.

* HTMLElement.click() support

* update web compat table.

* Update dependency acorn to v8 (ampproject#908)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update dependency typescript to v4 (ampproject#923)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update dependency np to v6.5.0 (ampproject#921)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Support Dirty Flag for HTMLInputElement.value (ampproject#913)

* v0.25.1

* Support dirty flag for HTMLInputElement.value

* Support dirty flag for HTMLInputElement.value

* add a test

* fix progress

* update test for progress as well

* Bump size of worker.mjs

* Remove populated demo examples since tests now cover the functionality

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update Node.js to v14.9.0 (ampproject#889)

* v0.26.0 (ampproject#925)

* Update dependency rollup to v2.26.9 (ampproject#924)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency prettier to v2.1.1 (ampproject#920)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency css-loader to v4 (ampproject#906)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency webpack-cli to v3.3.12 (ampproject#905)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency webpack to v4.44.1 (ampproject#904)

* Update dependency tslint to v6.1.3 (ampproject#902)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Remove esmodule syntax (ampproject#927)

* v0.25.1

* Remove ESModules Package syntax since its not being used

* Use toUpper utility (ampproject#928)

* v0.25.1

* Use the utilities instead of direct methods

* Update dependency sirv to v1.0.6 (ampproject#901)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency sinon to v9.0.3 (ampproject#900)

* Update dependency rollup to v2.26.11 (ampproject#931)

* Update dependency css-loader to v4.3.0 (ampproject#934)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Refactor output (ampproject#929)

* v0.25.1

* Create production and debug outputs for AMP

* tweak tracked resources for filesize

* Additional tracking for nodom variant

* Update dependency husky to v4.3.0 (ampproject#933)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>

* Update Dependencies (ampproject#935)

* v0.25.1

* Update to latest versions

* Bump version + skip hooks for release (ampproject#936)

* v0.27.0

* skip hooks on release

* v0.27.1

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update Node.js to v14.10.0 (ampproject#930)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency preact to v10.4.8 (ampproject#898)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency mini-css-extract-plugin to v0.11.1 (ampproject#897)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency ava to v3.12.1 (ampproject#893)

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* Update dependency lint-staged to v10.3.0 (ampproject#896)

Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Ben Morss <morss@google.com>
Co-authored-by: WhiteSource Renovate <bot@renovateapp.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>

* fix: package.json conflict

Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
Co-authored-by: Ben Morss <morss@google.com>
Co-authored-by: WhiteSource Renovate <bot@renovateapp.com>
Co-authored-by: Kristofer Baxter <kristofer@kristoferbaxter.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants