Skip to content

Commit

Permalink
Update AVA
Browse files Browse the repository at this point in the history
  • Loading branch information
runarberg committed May 4, 2020
1 parent 2e3c23d commit 833754b
Show file tree
Hide file tree
Showing 66 changed files with 1,170 additions and 2,376 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -6,4 +6,4 @@ script:
- npm run lint
- npm test
after_script:
- npx nyc report --reporter=text-lcov | npx coveralls
- npx c8 report --reporter=text-lcov | npx coveralls
3,392 changes: 1,087 additions & 2,305 deletions package-lock.json

Large diffs are not rendered by default.

54 changes: 33 additions & 21 deletions package.json
Expand Up @@ -22,19 +22,21 @@
"url": "https://github.com/runarberg/mathup.git"
},
"scripts": {
"clean": "rm -fr .nyc_output dependencies.mjs coverage/ target/",
"clean": "rm -fr .c8_output dependencies.mjs coverage/ target/",
"server": "python3 -m http.server",
"dependencies": "rollup --config --configDeps",
"lint": "eslint --ext .js --ext .mjs --ext .cjs src/ test/ *.config.js *.src.mjs",
"build": "rollup --config",
"predemo": "npm run dependencies",
"prebuild": "npm run dependencies",
"prepare": "npm run build",
"test": "nyc ava",
"preserver": "npm run dependencies",
"test": "c8 ava",
"test:watch": "ava --watch"
},
"ava": {
"require": [
"@babel/register"
"files": [
"test/**/*",
"src/**/*.test.*"
]
},
"babel": {
Expand All @@ -52,13 +54,24 @@
]
]
},
"c8": {
"reporter": [
"html",
"text",
"text-summary"
],
"include": [
"src/**/*.mjs",
"!src/**/*test.mjs"
]
},
"eslintConfig": {
"env": {
"node": true,
"browser": false
},
"parserOptions": {
"ecmaVersion": "2019",
"ecmaVersion": "2020",
"sourceType": "module"
},
"extends": [
Expand All @@ -71,6 +84,16 @@
"error",
"ignorePackages"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"*.config.js",
"**/*.test.mjs",
"test/**/*.mjs"
]
}
],
"no-restricted-syntax": [
"error",
"ForInStatement",
Expand All @@ -85,16 +108,6 @@
]
}
},
"nyc": {
"reporter": [
"html",
"text",
"text-summary"
],
"include": [
"src/**/*.mjs"
]
},
"prettier": {
"trailingComma": "all"
},
Expand All @@ -103,21 +116,20 @@
"@babel/core": "^7.9.6",
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/register": "^7.9.0",
"@babel/runtime": "^7.9.6",
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-node-resolve": "^6.1.0",
"ava": "^2.4.0",
"ava": "^3.8.1",
"c8": "^7.1.1",
"coveralls": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-ava": "^9.0.0",
"eslint-plugin-ava": "^10.3.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^3.1.3",
"expect.js": "^0.3.1",
"jsdom": "^15.2.1",
"nyc": "^15.0.1",
"jsdom": "^16.2.2",
"prettier": "1.19.1",
"rollup": "^1.32.1",
"rollup-plugin-babel": "^4.4.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,11 +1,11 @@
/* globals globalThis */

import test from "ava";
import { JSDOM } from "jsdom";
import jsdom from "jsdom";

import toDOM from "./to-dom.mjs";

const { window } = new JSDOM();
const { window } = new jsdom.JSDOM();

test.before("set up DOM", () => {
globalThis.document = window.document;
Expand Down
@@ -1,12 +1,12 @@
/* globals globalThis */

import test from "ava";
import { JSDOM } from "jsdom";
import jsdom from "jsdom";

import updateDOM from "./update-dom.mjs";

const NS = "http://www.w3.org/1998/Math/MathML";
const { window } = new JSDOM();
const { window } = new jsdom.JSDOM();
const { document } = window;

function createRoot() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/accents.js`
# Snapshot report for `test/accents.mjs`

The actual snapshot is saved in `accents.js.snap`.
The actual snapshot is saved in `accents.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## All accents

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/snapshots/basics.js.md → test/snapshots/basics.mjs.md
@@ -1,8 +1,8 @@
# Snapshot report for `test/basics.js`
# Snapshot report for `test/basics.mjs`

The actual snapshot is saved in `basics.js.snap`.
The actual snapshot is saved in `basics.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## 1+1 = 2

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/snapshots/fonts.js.md → test/snapshots/fonts.mjs.md
@@ -1,8 +1,8 @@
# Snapshot report for `test/fonts.js`
# Snapshot report for `test/fonts.mjs`

The actual snapshot is saved in `fonts.js.snap`.
The actual snapshot is saved in `fonts.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Backtick surrounded as identifiers

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/fractions.js`
# Snapshot report for `test/fractions.mjs`

The actual snapshot is saved in `fractions.js.snap`.
The actual snapshot is saved in `fractions.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Allows trailing fractions

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/groupings.js`
# Snapshot report for `test/groupings.mjs`

The actual snapshot is saved in `groupings.js.snap`.
The actual snapshot is saved in `groupings.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Adds parentesis around parentesized comma seperated lists

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/identifiers.js`
# Snapshot report for `test/identifiers.mjs`

The actual snapshot is saved in `identifiers.js.snap`.
The actual snapshot is saved in `identifiers.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Blackboard

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/matrices.js`
# Snapshot report for `test/matrices.mjs`

The actual snapshot is saved in `matrices.js.snap`.
The actual snapshot is saved in `matrices.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Column vectors

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/numbers.js`
# Snapshot report for `test/numbers.mjs`

The actual snapshot is saved in `numbers.js.snap`.
The actual snapshot is saved in `numbers.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Duodecimals

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/operators.js`
# Snapshot report for `test/operators.mjs`

The actual snapshot is saved in `operators.js.snap`.
The actual snapshot is saved in `operators.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Bayes theorem

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/options.js`
# Snapshot report for `test/options.mjs`

The actual snapshot is saved in `options.js.snap`.
The actual snapshot is saved in `options.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Arbitrary column separators

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/snapshots/roots.js.md → test/snapshots/roots.mjs.md
@@ -1,8 +1,8 @@
# Snapshot report for `test/roots.js`
# Snapshot report for `test/roots.mjs`

The actual snapshot is saved in `roots.js.snap`.
The actual snapshot is saved in `roots.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Allows empty roots

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/standard-functions.js`
# Snapshot report for `test/standard-functions.mjs`

The actual snapshot is saved in `standard-functions.js.snap`.
The actual snapshot is saved in `standard-functions.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## 2×2 determinants

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/sub-supscripts.js`
# Snapshot report for `test/sub-supscripts.mjs`

The actual snapshot is saved in `sub-supscripts.js.snap`.
The actual snapshot is saved in `sub-supscripts.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Allows trailing sub or superscripts

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/under-overscrips.js`
# Snapshot report for `test/under-overscrips.mjs`

The actual snapshot is saved in `under-overscrips.js.snap`.
The actual snapshot is saved in `under-overscrips.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Allows trailing under or overscripts

Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
# Snapshot report for `test/whitespace.js`
# Snapshot report for `test/whitespace.mjs`

The actual snapshot is saved in `whitespace.js.snap`.
The actual snapshot is saved in `whitespace.mjs.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## Adjacent symbols on either side of whitespace gets wrapped in an <mrow>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 833754b

Please sign in to comment.