Skip to content

Commit

Permalink
🎨 update GitHub actions and node version (#188)
Browse files Browse the repository at this point in the history
* update GitHub actions and node version

* update package versions and fix jest
```sh
npm install -g npm-check-updates
ncu -u
npm run test:unit --updateSnapshot
```

* update cypress

* 👕 lint

* 🔥 unused comment

* 🐛 fix cypress coverage
  • Loading branch information
philschatz authored Dec 16, 2023
1 parent bc449da commit d4f55c4
Show file tree
Hide file tree
Showing 72 changed files with 8,580 additions and 11,441 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/cypress.config.ts
/client/src/webview-js/cnxml-preview/cnxml-preview.js
/client/src/webview-js/toc-editor/toc-editor.jsx
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '18'
- name: Setup
run: |
npm install
Expand All @@ -43,7 +43,7 @@ jobs:
run: |
xvfb-run -a npm run test
- name: Upload Code Coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
- name: Lint
run: |
npm run lint
52 changes: 26 additions & 26 deletions client/specs/__snapshots__/book-tocs.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Toc Provider filters fileids when filtering is set 1`] = `
Object {
{
"collapsibleState": "None",
"command": Object {
"arguments": Array [
Object {
"command": {
"arguments": [
{
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand All @@ -17,7 +17,7 @@ Object {
"description": "fileId",
"iconPath": "File",
"label": "title",
"resourceUri": Object {
"resourceUri": {
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand All @@ -26,11 +26,11 @@ Object {
`;

exports[`Toc Provider filters fileids when filtering is set 2`] = `
Object {
{
"collapsibleState": "None",
"command": Object {
"arguments": Array [
Object {
"command": {
"arguments": [
{
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand All @@ -41,7 +41,7 @@ Object {
},
"iconPath": "File",
"label": "title (fileId)",
"resourceUri": Object {
"resourceUri": {
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand All @@ -50,11 +50,11 @@ Object {
`;

exports[`Toc Provider filters fileids when filtering is set 3`] = `
Object {
{
"collapsibleState": "None",
"command": Object {
"arguments": Array [
Object {
"command": {
"arguments": [
{
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand All @@ -66,7 +66,7 @@ Object {
"description": "fileId",
"iconPath": "File",
"label": "title",
"resourceUri": Object {
"resourceUri": {
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand All @@ -75,11 +75,11 @@ Object {
`;

exports[`Toc Provider returns tree items for children 1`] = `
Object {
{
"collapsibleState": "Collapsed",
"command": Object {
"arguments": Array [
Object {
"command": {
"arguments": [
{
"$mid": 1,
"path": "/some/path",
"scheme": "file",
Expand All @@ -91,7 +91,7 @@ Object {
"description": "slug",
"iconPath": ThemeIcon {},
"label": "title",
"resourceUri": Object {
"resourceUri": {
"$mid": 1,
"path": "/some/path",
"scheme": "file",
Expand All @@ -100,19 +100,19 @@ Object {
`;

exports[`Toc Provider returns tree items for children 2`] = `
Object {
{
"collapsibleState": "Collapsed",
"iconPath": "Folder",
"label": "title",
}
`;

exports[`Toc Provider returns tree items for children 3`] = `
Object {
{
"collapsibleState": "None",
"command": Object {
"arguments": Array [
Object {
"command": {
"arguments": [
{
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand All @@ -124,7 +124,7 @@ Object {
"description": "fileId",
"iconPath": "File",
"label": "title",
"resourceUri": Object {
"resourceUri": {
"$mid": 1,
"path": "/path/to/file",
"scheme": "file",
Expand Down
4 changes: 2 additions & 2 deletions client/specs/__snapshots__/cnxml-preview.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`cnxml-preview simple tagElementsWithLineNumbers 1`] = `
"
<document data-line=\\"2\\">
<div data-line=\\"3\\"><span data-line=\\"3\\">Test</span><div data-line=\\"3\\"/></div>
<document data-line="2">
<div data-line="3"><span data-line="3">Test</span><div data-line="3"/></div>
</document>"
`;
Loading

0 comments on commit d4f55c4

Please sign in to comment.