Skip to content

Commit

Permalink
chore(deps-dev): Bump jest and related modules (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 authored Nov 29, 2022
1 parent e59ff12 commit 72e844f
Show file tree
Hide file tree
Showing 8 changed files with 3,146 additions and 4,129 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nodejs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
CI: true
FORCE_COLOR: 2
NODE_COV: 16 # The Node.js version to run coveralls on
NODE_COV: lts/* # The Node.js version to run coveralls on

jobs:
lint:
Expand All @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run lint
Expand All @@ -31,10 +31,10 @@ jobs:
fail-fast: false
matrix:
node:
- 10
- 12
- 14
- 16
- 18
- lts/*

steps:
- uses: actions/checkout@v3
Expand Down
4,156 changes: 1,585 additions & 2,571 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,26 @@
"entities": "^4.4.0"
},
"devDependencies": {
"@types/jest": "^27.5.0",
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"jest": "^27.5.1",
"jest": "^29.3.1",
"prettier": "^2.8.0",
"ts-jest": "^27.1.4",
"ts-jest": "^29.0.3",
"typescript": "^4.9.3"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"coverageProvider": "v8",
"moduleNameMapper": {
"^(.*)\\.js$": "$1"
"^(.*)\\.js$": [
"$1",
"$1.js"
]
}
},
"prettier": {
Expand Down
2 changes: 1 addition & 1 deletion src/Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class Parser implements Callbacks {
private attribname = "";
private attribvalue = "";
private attribs: null | { [key: string]: string } = null;
private stack: string[] = [];
private readonly stack: string[] = [];
private readonly foreignContext: boolean[] = [];
private readonly cbs: Partial<Handler>;
private readonly lowerCaseTagNames: boolean;
Expand Down
78 changes: 39 additions & 39 deletions src/__snapshots__/FeedHandler.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Feeds Atom (1.0) 1`] = `
Object {
{
"author": "johndoe@example.com",
"description": "A subtitle.",
"id": "urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6",
"items": Array [
Object {
"items": [
{
"description": "Some content.",
"id": "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a",
"link": "http://example.org/2003/12/13/atom03",
"media": Array [],
"media": [],
"pubDate": 2003-12-13T18:30:02.000Z,
"title": "Atom-Powered Robots Run Amok",
},
Object {
"media": Array [],
{
"media": [],
},
],
"link": "http://example.org/feed/",
Expand All @@ -26,19 +26,19 @@ Object {
`;

exports[`Feeds RDF test 1`] = `
Object {
{
"id": "",
"items": Array [
Object {
"description": "Great test content<br>A link: <a href=\\"http://github.com\\">Github</a>",
"items": [
{
"description": "Great test content<br>A link: <a href="http://github.com">Github</a>",
"link": "http://somefakesite/path/to/something.html",
"media": Array [],
"media": [],
"title": "Fast HTML Parsing",
},
Object {
{
"description": "The early bird gets the worm",
"link": "http://somefakesite/path/to/something-else.html",
"media": Array [],
"media": [],
"title": "This space intentionally left blank",
},
],
Expand All @@ -49,39 +49,39 @@ Object {
`;

exports[`Feeds RSS (2.0) 1`] = `
Object {
{
"author": "editor@example.com",
"description": "Liftoff to Space Exploration.",
"id": "",
"items": Array [
Object {
"description": "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href=\\"http://howe.iki.rssi.ru/GCTC/gctc_e.htm\\">Star City</a>.",
"items": [
{
"description": "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm">Star City</a>.",
"id": "http://liftoff.msfc.nasa.gov/2003/06/03.html#item573",
"link": "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp",
"media": Array [],
"media": [],
"pubDate": 2003-06-03T09:39:21.000Z,
"title": "Star City",
},
Object {
"description": "Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a <a href=\\"http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm\\">partial eclipse of the Sun</a> on Saturday, May 31st.",
{
"description": "Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a <a href="http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm">partial eclipse of the Sun</a> on Saturday, May 31st.",
"id": "http://liftoff.msfc.nasa.gov/2003/05/30.html#item572",
"media": Array [],
"media": [],
"pubDate": 2003-05-30T11:06:42.000Z,
},
Object {
{
"description": "Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly. The proposed VASIMR engine would do that.",
"id": "http://liftoff.msfc.nasa.gov/2003/05/27.html#item571",
"link": "http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp",
"media": Array [],
"media": [],
"pubDate": 2003-05-27T08:37:32.000Z,
"title": "The Engine That Does More",
},
Object {
{
"description": "Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them. Instead, astronauts have other options.",
"id": "http://liftoff.msfc.nasa.gov/2003/05/20.html#item570",
"link": "http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp",
"media": Array [
Object {
"media": [
{
"height": 200,
"isDefault": false,
"medium": "image",
Expand All @@ -101,39 +101,39 @@ Object {
`;

exports[`parseFeed (rssFeed) 1`] = `
Object {
{
"author": "editor@example.com",
"description": "Liftoff to Space Exploration.",
"id": "",
"items": Array [
Object {
"description": "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href=\\"http://howe.iki.rssi.ru/GCTC/gctc_e.htm\\">Star City</a>.",
"items": [
{
"description": "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm">Star City</a>.",
"id": "http://liftoff.msfc.nasa.gov/2003/06/03.html#item573",
"link": "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp",
"media": Array [],
"media": [],
"pubDate": 2003-06-03T09:39:21.000Z,
"title": "Star City",
},
Object {
"description": "Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a <a href=\\"http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm\\">partial eclipse of the Sun</a> on Saturday, May 31st.",
{
"description": "Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a <a href="http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm">partial eclipse of the Sun</a> on Saturday, May 31st.",
"id": "http://liftoff.msfc.nasa.gov/2003/05/30.html#item572",
"media": Array [],
"media": [],
"pubDate": 2003-05-30T11:06:42.000Z,
},
Object {
{
"description": "Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly. The proposed VASIMR engine would do that.",
"id": "http://liftoff.msfc.nasa.gov/2003/05/27.html#item571",
"link": "http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp",
"media": Array [],
"media": [],
"pubDate": 2003-05-27T08:37:32.000Z,
"title": "The Engine That Does More",
},
Object {
{
"description": "Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them. Instead, astronauts have other options.",
"id": "http://liftoff.msfc.nasa.gov/2003/05/20.html#item570",
"link": "http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp",
"media": Array [
Object {
"media": [
{
"height": 200,
"isDefault": false,
"medium": "image",
Expand Down
Loading

0 comments on commit 72e844f

Please sign in to comment.