Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #3851

Merged
merged 5 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/examples/chrome-debugging-protocol/.npmrc

This file was deleted.

6 changes: 3 additions & 3 deletions doc/examples/chrome-debugging-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"scripts": {
"test": "echo 'No test specified.'"
},
"dependencies": {
"axe-core": "^3.3.1",
"chrome-remote-interface": "^0.27.1"
"devDependencies": {
"axe-core": "^4.6.2",
"chrome-remote-interface": "^0.31.3"
}
}
9 changes: 4 additions & 5 deletions doc/examples/jasmine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
"dependencies": {},
"scripts": {
"test": "karma start karma.conf.js"
},
"devDependencies": {
"axe-core": "^3.3.1",
"karma": "^4.2.0",
"karma-chrome-launcher": "^3.0.0",
"karma-jasmine": "^2.0.1"
"axe-core": "^4.6.2",
"karma": "^6.4.1",
"karma-chrome-launcher": "^3.1.1",
"karma-jasmine": "^5.1.0"
}
}
12 changes: 11 additions & 1 deletion doc/examples/jest_react/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"@babel/preset-react"
]
}
4 changes: 4 additions & 0 deletions doc/examples/jest_react/jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const Enzyme = require('enzyme');
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17');

Enzyme.configure({ adapter: new Adapter() });
13 changes: 8 additions & 5 deletions doc/examples/jest_react/link.test.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import React from 'react';
import { mount, render } from 'enzyme';
import axe from 'axe-core';
import { mountToDoc } from './test-helpers';

import Link from './link';

test('Link has no axe violations', done => {
const linkComponent = mountToDoc(
<Link page="http://www.axe-core.org">axe website</Link>
const fixture = document.createElement('div');
document.body.appendChild(fixture);

const linkComponent = mount(
<Link page="http://www.axe-core.org">axe website</Link>,
{ attachTo: fixture }
);
const linkNode = linkComponent.getDOMNode();

const config = {
rules: {
'color-contrast': { enabled: false },
'link-in-text-block': { enabled: false }
}
};
axe.run(linkNode, config, (err, { violations }) => {
axe.run(fixture, config, (err, { violations }) => {
expect(err).toBe(null);
expect(violations).toHaveLength(0);
done();
Expand Down
27 changes: 15 additions & 12 deletions doc/examples/jest_react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
"dependencies": {},
"scripts": {
"test": "jest"
},
"devDependencies": {
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"axe-core": "^3.3.1",
"babel-jest": "^24.8.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"jest": "^24.8.0",
"jest-cli": "^24.8.0",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-test-renderer": "^16.2.0"
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"axe-core": "^4.6.2",
"enzyme": "^3.11.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"jest": {
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.js"
]
}
}
21 changes: 0 additions & 21 deletions doc/examples/jest_react/test-helpers.js

This file was deleted.

7 changes: 3 additions & 4 deletions doc/examples/jsdom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
"description": "Axe JSDOM Example",
"version": "0.0.1",
"private": true,
"dependencies": {},
"scripts": {
"test": "mocha"
},
"devDependencies": {
"axe-core": "^3.3.1",
"jsdom": "^15.1.1",
"mocha": "^6.2.0"
"axe-core": "^4.6.2",
"jsdom": "^21.0.0",
"mocha": "^10.2.0"
}
}
9 changes: 4 additions & 5 deletions doc/examples/mocha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
"dependencies": {},
"scripts": {
"test": "karma start karma.conf.js"
},
"devDependencies": {
"axe-core": "^3.3.1",
"karma": "^4.2.0",
"axe-core": "^4.6.2",
"karma": "^6.4.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.0.0",
"karma-mocha": "^1.3.0"
"karma-chrome-launcher": "^3.1.1",
"karma-mocha": "^2.0.1"
}
}
1 change: 0 additions & 1 deletion doc/examples/puppeteer/.npmrc

This file was deleted.

6 changes: 3 additions & 3 deletions doc/examples/puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"test": "node axe-puppeteer.js https://deque.com"
},
"dependencies": {
"axe-core": "^3.3.1",
"puppeteer": "^1.19.0"
"devDependencies": {
"axe-core": "^4.6.2",
"puppeteer": "^19.5.0"
}
}
13 changes: 12 additions & 1 deletion doc/examples/qunit/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ module.exports = function (grunt) {

grunt.initConfig({
qunit: {
all: ['test/**/*.html']
all: ['test/**/*.html'],
options: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran into this issue gruntjs/grunt-contrib-qunit#158

puppeteer: {
ignoreDefaultArgs: true,
args: [
'--headless',
'--disable-web-security',
'--allow-file-access-from-files'
]
},
timeout: 10000
}
}
});
};
10 changes: 5 additions & 5 deletions doc/examples/qunit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
"dependencies": {},
"scripts": {
"test": "grunt qunit"
},
"devDependencies": {
"axe-core": "^3.3.1",
"grunt": "~1.0.2",
"grunt-contrib-qunit": "~3.1.0",
"qunitjs": "~2.4.1"
"axe-core": "^4.6.2",
"grunt": "^1.5.3",
"grunt-contrib-qunit": "^5.1.1",
"puppeteer": "^19.5.0",
"qunitjs": "^2.0.1"
}
}
Loading