ci: automate changelog generation (#1792)

This commit is contained in:
Niklas von Hertzen 2019-04-07 12:49:10 -07:00 committed by GitHub
parent 2c018d1987
commit 7ebef72e92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 1479 additions and 295 deletions

View File

@ -11,7 +11,7 @@ insert_final_newline = true
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
[{.travis.yml,package.json}] [{azure-pipelines.yml,package.json}]
# The indent size used in the `package.json` file cannot be changed # The indent size used in the `package.json` file cannot be changed
# https://github.com/npm/npm/pull/3180#issuecomment-16336516 # https://github.com/npm/npm/pull/3180#issuecomment-16336516
indent_size = 2 indent_size = 2

View File

@ -17,4 +17,5 @@ tmp/
azure-pipelines.yml azure-pipelines.yml
karma.js karma.js
karma.conf.js karma.conf.js
rollup.config.js
webpack.config.js webpack.config.js

View File

@ -1,88 +0,0 @@
language: node_js
node_js:
- '10'
stages:
- test
- release
env:
global:
- secure: eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8=
- secure: Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk=
dist: trusty
sudo: true
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/2b007d4f86de89588804
on_success: always
on_failure: always
on_start: false
install:
- npm ci
cache: npm
jobs:
include:
- stage: test
name: "Browser test - Internet Explorer 11"
os: windows
filter_secrets: false
if: type = push AND repo=niklasvh/html2canvas
script:
- npm run build
- dir "c:\"
- dir "c:\Program Files"
- dir "c:\Program Files\internet explorer"
- dir "c:\Program Files (x86)"
- dir "c:\Program Files (x86)\internet explorer"
- "c:\Program Files (x86)\internet explorer\iexplore.exe" http://blog.hertzen.com/
- TARGET_BROWSER=IE_11 IE_BIN="c:\Program Files (x86)\Internet Explorer\iexplore.exe" npm run karma
- stage: test
name: "Build docs"
script:
- npm run build && cd www && npm install && npm run build && cd ..
- stage: release
name: "Deploy docs"
script: skip
if: type = push AND branch=master AND repo=niklasvh/html2canvas
deploy:
provider: pages
skip_cleanup: true
local_dir: www/public
target_branch: gh-pages
fqdn: html2canvas.hertzen.com
github_token:
secure: "PowO/Jat660k3gHcjgI6DlJz15RM7pLUu11UPsLCtYJ8ZwodppE6Keg0DfVkSFSIZttZor+UssDwP/WOEqfZNLqmXbcj3Gec4xolohet/GOe0KJKKuF/HgggbcxumopxMX6sMVePlMBpkLpHh7tgEAEHBWTlzC1c1a7Xa48fZ7k="
on:
branch: master
repo: niklasvh/html2canvas
- stage: release
name: "GitHub release"
script: skip
if: type = push AND tag IS present AND branch=master AND repo=niklasvh/html2canvas
deploy:
provider: releases
api_key:
secure: "PowO/Jat660k3gHcjgI6DlJz15RM7pLUu11UPsLCtYJ8ZwodppE6Keg0DfVkSFSIZttZor+UssDwP/WOEqfZNLqmXbcj3Gec4xolohet/GOe0KJKKuF/HgggbcxumopxMX6sMVePlMBpkLpHh7tgEAEHBWTlzC1c1a7Xa48fZ7k="
file:
- "dist/html2canvas.js"
- "dist/html2canvas.min.js"
skip_cleanup: true
on:
tags: true
branch: master
repo: niklasvh/html2canvas
- stage: release
name: "npm release"
script: skip
if: type = push AND tag IS present AND branch=master AND repo=niklasvh/html2canvas
deploy:
provider: npm
email: niklasvh@gmail.com
api_key:
secure: G/Szpr8q4/D6hp+H/Z9yyluUXtHAwf7LLa1Y07X59/Enlj1h7V5fQ7AW4/iAVM3XbIsrCPWR3dJU9g/ZxpxFg4OovIHVpS2Jr/mahtPYWdHR3pWuSmMW8QD+Twnq2VAFwSgg5Oumq3QxhX3YbCOnZox6+6Uviqk8FO7Z5B0RwW4=
skip_cleanup: true
on:
tags: true
branch: master
repo: niklasvh/html2canvas
script: skip

View File

@ -1,64 +1,66 @@
### Changelog ### # Change Log
#### v1.0.0-alpha.12 - 5.4.2018 #### All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# [1.0.0-alpha.12](https://github.com/niklasvh/html2canvas/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2019-04-07)
* Fix white space appearing on element rendering (Fix #1438) * Fix white space appearing on element rendering (Fix #1438)
* Reset canvas transform on finish (Fix #1494) * Reset canvas transform on finish (Fix #1494)
#### v1.0.0-alpha.11 - 1.4.2018 #### # v1.0.0-alpha.11 - 1.4.2018
* Fix IE11 member not found error * Fix IE11 member not found error
* Support blob image resources in non-foreignObjectRendering mode * Support blob image resources in non-foreignObjectRendering mode
#### v1.0.0-alpha.10 - 15.2.2018 #### # v1.0.0-alpha.10 - 15.2.2018
* Re-introduce `onclone` option (Fix #1434) * Re-introduce `onclone` option (Fix #1434)
* Add `ignoreElements` predicate function option * Add `ignoreElements` predicate function option
* Fix version console logging * Fix version console logging
#### v1.0.0-alpha.9 - 7.1.2018 #### # v1.0.0-alpha.9 - 7.1.2018
* Fix dynamic style sheets * Fix dynamic style sheets
* Fix > 50% border-radius values * Fix > 50% border-radius values
#### v1.0.0-alpha.8 - 2.1.2018 #### # v1.0.0-alpha.8 - 2.1.2018
* Use correct doctype in cloned Document (Fix #1298) * Use correct doctype in cloned Document (Fix #1298)
* Fix individual border rendering (Fix #1349) * Fix individual border rendering (Fix #1349)
#### v1.0.0-alpha.7 - 31.12.2017 #### # v1.0.0-alpha.7 - 31.12.2017
* Fix form input rendering (#1338) * Fix form input rendering (#1338)
* Improve word line breaking algorithm * Improve word line breaking algorithm
#### v1.0.0-alpha.6 - 28.12.2017 #### # v1.0.0-alpha.6 - 28.12.2017
* Fix list-style: none (#1340) * Fix list-style: none (#1340)
* Extend supported values for pseudo element content * Extend supported values for pseudo element content
#### v1.0.0-alpha.5 - 21.12.2017 #### # v1.0.0-alpha.5 - 21.12.2017
* Fix underline positioning * Fix underline positioning
* Fix canvas rendering on Chrome * Fix canvas rendering on Chrome
* Fix overflow: auto * Fix overflow: auto
* Added support for rendering list-style * Added support for rendering list-style
#### v1.0.0-alpha.4 - 12.12.2017 #### v1.0.0-alpha.4 - 12.12.2017
* Fix rendering with multiple fonts defined (Fix #796) * Fix rendering with multiple fonts defined (Fix #796)
* Add support for radial-gradients * Add support for radial-gradients
* Fix logging option (#1302) * Fix logging option (#1302)
* Add support for rendering webgl canvas content (#646) * Add support for rendering webgl canvas content (#646)
* Fix external SVG loading with proxies (#802) * Fix external SVG loading with proxies (#802)
#### v1.0.0-alpha.3 - 9.12.2017 #### # v1.0.0-alpha.3 - 9.12.2017
* Disable `foreignObjectRendering` by default (#1295) * Disable `foreignObjectRendering` by default (#1295)
* Fix background-size when using background-origin and background-size: cover/contain (#1299) * Fix background-size when using background-origin and background-size: cover/contain (#1299)
* Added support for background-origin: content-box (#1299) * Added support for background-origin: content-box (#1299)
#### v1.0.0-alpha.2 - 7.12.2017 #### # v1.0.0-alpha.2 - 7.12.2017
* Fix scroll positions for CanvasRenderer (#1259) * Fix scroll positions for CanvasRenderer (#1259)
* Fix `data-html2canvas-ignore` attribute (#1253) * Fix `data-html2canvas-ignore` attribute (#1253)
* Fix decimal `letter-spacing` values (#1293) * Fix decimal `letter-spacing` values (#1293)
#### v1.0.0-alpha.1 - 5.12.2017 #### # v1.0.0-alpha.1 - 5.12.2017
* Complete rewrite of library * Complete rewrite of library
##### Breaking Changes ##### ##### Breaking Changes #####
* Remove deprecated onrendered callback, calling `html2canvas` returns a `Promise<HTMLCanvasElement>` * Remove deprecated onrendered callback, calling `html2canvas` returns a `Promise<HTMLCanvasElement>`
* Removed option `type`, same results can be achieved by assigning `x`, `y`, `scrollX`, `scrollY`, `width` and `height` properties. * Removed option `type`, same results can be achieved by assigning `x`, `y`, `scrollX`, `scrollY`, `width` and `height` properties.
##### New featues / fixes ##### ## New featues / fixes
* Add support for scaling canvas (defaults to device pixel ratio) * Add support for scaling canvas (defaults to device pixel ratio)
* Add support for multiple text-shadows * Add support for multiple text-shadows
* Add support for multiple text-decorations * Add support for multiple text-decorations
@ -68,18 +70,18 @@
* Correctly support all angle types for linear-gradients * Correctly support all angle types for linear-gradients
* Add support for multiple values for background-repeat, background-position and background-size * Add support for multiple values for background-repeat, background-position and background-size
#### v0.5.0-beta4 - 23.1.2016 #### # v0.5.0-beta4 - 23.1.2016
* Fix logger requiring access to window object * Fix logger requiring access to window object
* Derequire browserify build * Derequire browserify build
* Fix rendering of specific elements when window is scrolled and `type` isn't set to `view` * Fix rendering of specific elements when window is scrolled and `type` isn't set to `view`
#### v0.5.0-beta3 - 6.12.2015 #### # v0.5.0-beta3 - 6.12.2015
* Handle color names in linear gradients * Handle color names in linear gradients
#### v0.5.0-beta2 - 20.10.2015 #### # v0.5.0-beta2 - 20.10.2015
* Remove Promise polyfill (use native or provide it yourself) * Remove Promise polyfill (use native or provide it yourself)
#### v0.5.0-beta1 - 19.10.2015 #### # v0.5.0-beta1 - 19.10.2015
* Fix bug with unmatched color stops in gradients * Fix bug with unmatched color stops in gradients
* Fix scrolling issues with iOS * Fix scrolling issues with iOS
* Correctly handle named colors in gradients * Correctly handle named colors in gradients
@ -87,11 +89,11 @@
* Fix transparent colors breaking gradients * Fix transparent colors breaking gradients
* Preserve scrolling positions on render * Preserve scrolling positions on render
#### v0.5.0-alpha2 - 3.2.2015 #### # v0.5.0-alpha2 - 3.2.2015
* Switch to using browserify for building * Switch to using browserify for building
* Fix (#517) Chrome stretches background images with 'auto' or single attributes * Fix (#517) Chrome stretches background images with 'auto' or single attributes
#### v0.5.0-alpha - 19.1.2015#### # v0.5.0-alpha - 19.1.2015
* Complete rewrite of library * Complete rewrite of library
* Switched interface to return Promise * Switched interface to return Promise
* Uses hidden iframe window to perform rendering, allowing async rendering and doesn't force the viewport to be scrolled to the top anymore. * Uses hidden iframe window to perform rendering, allowing async rendering and doesn't force the viewport to be scrolled to the top anymore.
@ -102,14 +104,14 @@
* Changed format for proxy requests, permitting binary responses with CORS headers as well * Changed format for proxy requests, permitting binary responses with CORS headers as well
* Fixed many layering issues (see z-index tests) * Fixed many layering issues (see z-index tests)
#### v0.4.1 - 7.9.2013 #### # v0.4.1 - 7.9.2013
* Added support for bower * Added support for bower
* Improved z-index ordering * Improved z-index ordering
* Basic implementation for CSS transformations * Basic implementation for CSS transformations
* Fixed inline text in top element * Fixed inline text in top element
* Basic implementation for text-shadow * Basic implementation for text-shadow
#### v0.4.0 - 30.1.2013 #### # v0.4.0 - 30.1.2013
* Added rendering tests with <a href="https://github.com/niklasvh/webdriver.js">webdriver</a> * Added rendering tests with <a href="https://github.com/niklasvh/webdriver.js">webdriver</a>
* Switched to using grunt for building * Switched to using grunt for building
* Removed support for IE<9, including any FlashCanvas bits * Removed support for IE<9, including any FlashCanvas bits
@ -119,7 +121,7 @@
* Support for placeholder rendering * Support for placeholder rendering
* Reformatted all tests to small units to test specific features * Reformatted all tests to small units to test specific features
#### v0.3.4 - 26.6.2012 #### # v0.3.4 - 26.6.2012
* Removed (last?) jQuery dependencies (<a href="https://github.com/niklasvh/html2canvas/commit/343b86705fe163766fcf735eb0217130e4bd5b17">niklasvh</a>) * Removed (last?) jQuery dependencies (<a href="https://github.com/niklasvh/html2canvas/commit/343b86705fe163766fcf735eb0217130e4bd5b17">niklasvh</a>)
* SVG-powered rendering (<a href="https://github.com/niklasvh/html2canvas/commit/67d3e0d0f59a5a654caf71a2e3be6494ff146c75">niklasvh</a>) * SVG-powered rendering (<a href="https://github.com/niklasvh/html2canvas/commit/67d3e0d0f59a5a654caf71a2e3be6494ff146c75">niklasvh</a>)
@ -127,7 +129,7 @@
* Split renderers to their own objects (<a href="https://github.com/niklasvh/html2canvas/commit/94f2f799a457cd29a21cc56ef8c06f1697866739">niklasvh</a>) * Split renderers to their own objects (<a href="https://github.com/niklasvh/html2canvas/commit/94f2f799a457cd29a21cc56ef8c06f1697866739">niklasvh</a>)
* Simplified API, cleaned up code (<a href="https://github.com/niklasvh/html2canvas/commit/c7d526c9eaa6a4abf4754d205fe1dee360c7660e">niklasvh</a>) * Simplified API, cleaned up code (<a href="https://github.com/niklasvh/html2canvas/commit/c7d526c9eaa6a4abf4754d205fe1dee360c7660e">niklasvh</a>)
#### v0.3.3 - 2.3.2012 #### # v0.3.3 - 2.3.2012
* SVG taint fix, and additional taint testing options for rendering (<a href="https://github.com/niklasvh/html2canvas/commit/2dc8b9385e656696cb019d615bdfa1d98b17d5d4">niklasvh</a>) * SVG taint fix, and additional taint testing options for rendering (<a href="https://github.com/niklasvh/html2canvas/commit/2dc8b9385e656696cb019d615bdfa1d98b17d5d4">niklasvh</a>)
* Added support for CORS images and option to create canvas as tainted (<a href="https://github.com/niklasvh/html2canvas/commit/3ad49efa0032cde25c6ed32a39e35d1505d3b2ef">niklasvh</a>) * Added support for CORS images and option to create canvas as tainted (<a href="https://github.com/niklasvh/html2canvas/commit/3ad49efa0032cde25c6ed32a39e35d1505d3b2ef">niklasvh</a>)
@ -135,7 +137,7 @@
* Added integrated support for Flashcanvas (<a href="https://github.com/niklasvh/html2canvas/commit/e9257191519f67d74fd5e364d8dee3c0963ba5fc">niklasvh</a>) * Added integrated support for Flashcanvas (<a href="https://github.com/niklasvh/html2canvas/commit/e9257191519f67d74fd5e364d8dee3c0963ba5fc">niklasvh</a>)
* Fixed a variety of legacy IE bugs (<a href="https://github.com/niklasvh/html2canvas/commit/b65357c55d0701017bafcd357bc654b54d458f8f">niklasvh</a>) * Fixed a variety of legacy IE bugs (<a href="https://github.com/niklasvh/html2canvas/commit/b65357c55d0701017bafcd357bc654b54d458f8f">niklasvh</a>)
#### v0.3.2 - 20.2.2012 #### # v0.3.2 - 20.2.2012
* Added changelog! * Added changelog!
* Added bookmarklet (<a href="https://github.com/niklasvh/html2canvas/commit/b320dd306e1a2d32a3bc5a71b6ebf6d8c060cde5">cobexer</a>) * Added bookmarklet (<a href="https://github.com/niklasvh/html2canvas/commit/b320dd306e1a2d32a3bc5a71b6ebf6d8c060cde5">cobexer</a>)

View File

@ -16,6 +16,16 @@ jobs:
command: install command: install
- script: npm run build - script: npm run build
displayName: Build displayName: Build
- script: |
npm pack
mv html2canvas-*.tgz html2canvas.tgz
tar --list --verbose --file=html2canvas.tgz
displayName: Pack
name: pack
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: html2canvas.tgz
artifactName: npm
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
inputs: inputs:
PathtoPublish: 'dist' PathtoPublish: 'dist'
@ -59,6 +69,7 @@ jobs:
- script: npm run build && cd www && npm install && npm run build && cd .. - script: npm run build && cd www && npm install && npm run build && cd ..
displayName: Build docs displayName: Build docs
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload docs website artifact
inputs: inputs:
PathtoPublish: 'www/public' PathtoPublish: 'www/public'
artifactName: docs artifactName: docs
@ -98,6 +109,7 @@ jobs:
testRunner: JUnit testRunner: JUnit
testResultsFiles: 'tmp/junit/*.xml' testResultsFiles: 'tmp/junit/*.xml'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Screenshots
condition: succeededOrFailed() condition: succeededOrFailed()
inputs: inputs:
PathtoPublish: 'tmp/reftests' PathtoPublish: 'tmp/reftests'
@ -138,6 +150,7 @@ jobs:
testRunner: JUnit testRunner: JUnit
testResultsFiles: 'tmp/junit/*.xml' testResultsFiles: 'tmp/junit/*.xml'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Screenshots
condition: succeededOrFailed() condition: succeededOrFailed()
inputs: inputs:
PathtoPublish: 'tmp/reftests' PathtoPublish: 'tmp/reftests'
@ -176,6 +189,7 @@ jobs:
testRunner: JUnit testRunner: JUnit
testResultsFiles: 'tmp/junit/*.xml' testResultsFiles: 'tmp/junit/*.xml'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Screenshots
condition: succeededOrFailed() condition: succeededOrFailed()
inputs: inputs:
PathtoPublish: 'tmp/reftests' PathtoPublish: 'tmp/reftests'
@ -214,6 +228,7 @@ jobs:
testRunner: JUnit testRunner: JUnit
testResultsFiles: 'tmp/junit/*.xml' testResultsFiles: 'tmp/junit/*.xml'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Screenshots
condition: succeededOrFailed() condition: succeededOrFailed()
inputs: inputs:
PathtoPublish: 'tmp/reftests' PathtoPublish: 'tmp/reftests'
@ -252,6 +267,7 @@ jobs:
testRunner: JUnit testRunner: JUnit
testResultsFiles: 'tmp/junit/*.xml' testResultsFiles: 'tmp/junit/*.xml'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Screenshots
condition: succeededOrFailed() condition: succeededOrFailed()
inputs: inputs:
PathtoPublish: 'tmp/reftests' PathtoPublish: 'tmp/reftests'
@ -290,6 +306,7 @@ jobs:
testRunner: JUnit testRunner: JUnit
testResultsFiles: 'tmp/junit/*.xml' testResultsFiles: 'tmp/junit/*.xml'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Screenshots
condition: succeededOrFailed() condition: succeededOrFailed()
inputs: inputs:
PathtoPublish: 'tmp/reftests' PathtoPublish: 'tmp/reftests'

1578
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"main": "dist/npm/index.js", "main": "dist/npm/index.js",
"module": "dist/html2canvas.js", "module": "dist/html2canvas.js",
"browser": "dist/html2canvas.js", "browser": "dist/html2canvas.js",
"version": "1.0.0-alpha.12", "version": "1.0.0-alpha.13",
"author": { "author": {
"name": "Niklas von Hertzen", "name": "Niklas von Hertzen",
"email": "niklasvh@gmail.com", "email": "niklasvh@gmail.com",
@ -33,9 +33,9 @@
"babel-preset-es2015": "6.24.1", "babel-preset-es2015": "6.24.1",
"babel-preset-flow": "6.23.0", "babel-preset-flow": "6.23.0",
"base64-arraybuffer": "0.1.5", "base64-arraybuffer": "0.1.5",
"body-parser": "1.17.2", "body-parser": "^1.18.3",
"chai": "4.1.1", "chai": "4.1.1",
"chromeless": "1.2.0", "chromeless": "^1.5.2",
"cors": "2.8.4", "cors": "2.8.4",
"eslint": "4.2.0", "eslint": "4.2.0",
"eslint-plugin-flowtype": "2.35.0", "eslint-plugin-flowtype": "2.35.0",
@ -67,8 +67,9 @@
"rollup-plugin-commonjs": "^9.1.0", "rollup-plugin-commonjs": "^9.1.0",
"rollup-plugin-node-resolve": "^3.3.0", "rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-uglify": "^3.0.0", "rollup-plugin-uglify": "^3.0.0",
"serve-index": "1.9.0", "serve-index": "^1.9.1",
"slash": "1.0.0", "slash": "1.0.0",
"standard-version": "^5.0.2",
"uglifyjs-webpack-plugin": "^1.1.2", "uglifyjs-webpack-plugin": "^1.1.2",
"webpack": "3.4.1" "webpack": "3.4.1"
}, },
@ -76,6 +77,7 @@
"build": "rimraf dist/ && node scripts/create-reftest-list && npm run build:npm && npm run build:browser", "build": "rimraf dist/ && node scripts/create-reftest-list && npm run build:npm && npm run build:browser",
"build:npm": "babel src/ -d dist/npm/ --plugins=dev-expression,transform-es2015-modules-commonjs && replace-in-file __VERSION__ '\"$npm_package_version\"' dist/npm/index.js", "build:npm": "babel src/ -d dist/npm/ --plugins=dev-expression,transform-es2015-modules-commonjs && replace-in-file __VERSION__ '\"$npm_package_version\"' dist/npm/index.js",
"build:browser": "webpack", "build:browser": "webpack",
"release": "standard-version",
"rollup": "rollup -c", "rollup": "rollup -c",
"format": "prettier --single-quote --no-bracket-spacing --tab-width 4 --print-width 100 --write \"{src,www/src,tests,scripts}/**/*.js\"", "format": "prettier --single-quote --no-bracket-spacing --tab-width 4 --print-width 100 --write \"{src,www/src,tests,scripts}/**/*.js\"",
"flow": "flow", "flow": "flow",

View File

@ -10,7 +10,7 @@ const outputPath = 'tests/reftests.js';
const ignoredTests = fs const ignoredTests = fs
.readFileSync(path.resolve(__dirname, `../tests/reftests/ignore.txt`)) .readFileSync(path.resolve(__dirname, `../tests/reftests/ignore.txt`))
.toString() .toString()
.split('\n') .split(/\r\n|\r|\n/)
.filter(l => l.length) .filter(l => l.length)
.reduce((acc, l) => { .reduce((acc, l) => {
const m = l.match(/^(\[(.+)\])?(.+)$/i); const m = l.match(/^(\[(.+)\])?(.+)$/i);