-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MAINT: bump dependencies * FIX: bugs in CI * MAINT: run prettier * FIX: restore test file * fix: enable frontmatter in viewer by default * fix: don't pass unused options * TEST: update tests to include markdown viewer * MAINT: run linter
- Loading branch information
Showing
20 changed files
with
156 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Example of [Jest](https://jestjs.io/docs/getting-started) unit tests | ||
*/ | ||
|
||
describe('jupyterlab-myst', () => { | ||
it('should be tested', () => { | ||
expect(1 + 1).toEqual(2); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ | |
|
||
# Uncomment to set server log level to debug level | ||
# c.ServerApp.log_level = "DEBUG" | ||
|
||
c.ServerApp.port = 9999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"name": "jupyterlab-myst-ui-tests", | ||
"version": "1.0.0", | ||
"description": "JupyterLab jupyterlab-myst Integration Tests", | ||
"private": true, | ||
"scripts": { | ||
"start": "jupyter lab --config jupyter_server_test_config.py", | ||
"test": "jlpm playwright test", | ||
"test:update": "jlpm playwright test --update-snapshots" | ||
}, | ||
"devDependencies": { | ||
"@jupyterlab/galata": "^5.0.5", | ||
"@playwright/test": "^1.37.0" | ||
} | ||
"name": "jupyterlab-myst-ui-tests", | ||
"version": "1.0.0", | ||
"description": "JupyterLab jupyterlab-myst Integration Tests", | ||
"private": true, | ||
"scripts": { | ||
"start": "jupyter lab --config jupyter_server_test_config.py", | ||
"test": "jlpm playwright test", | ||
"test:update": "jlpm playwright test --update-snapshots" | ||
}, | ||
"devDependencies": { | ||
"@jupyterlab/galata": "^5.0.5", | ||
"@playwright/test": "^1.37.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Jupyter Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||
|
||
import { expect, galata, test } from '@jupyterlab/galata'; | ||
import * as path from 'path'; | ||
|
||
const fileName = 'myst_tests.md'; | ||
const FACTORY = 'Markdown Preview'; | ||
// test.use({ tmpPath: 'notebook-run-test' }); | ||
|
||
test.describe.serial('File Run', () => { | ||
test.beforeEach(async ({ request, page, tmpPath }) => { | ||
const contents = galata.newContentsHelper(request, page); | ||
await contents.uploadFile( | ||
path.resolve(__dirname, `./files/${fileName}`), | ||
`${tmpPath}/${fileName}` | ||
); | ||
}); | ||
|
||
test('View Markdown file and render result', async ({ page, tmpPath }) => { | ||
const filePath = `${tmpPath}/${fileName}`; | ||
await page.filebrowser.open(filePath, FACTORY); | ||
|
||
const name = path.basename(filePath); | ||
await page.activity.getTab(name); | ||
|
||
const panel = await page.activity.getPanel(name); | ||
|
||
expect(await panel!.screenshot()).toMatchSnapshot(); | ||
}); | ||
}); |
Binary file added
BIN
+7.57 KB
...run.spec.ts-snapshots/File-Run-View-Markdown-file-and-render-result-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Hello | ||
|
||
```{note} | ||
:class: dropdown | ||
This is MyST in a notebook rendered by `jupyterlab-myst`!! | ||
``` |
Binary file modified
BIN
+3.04 KB
(150%)
...pec.ts-snapshots/Notebook-Run-Run-Notebook-and-capture-cell-outputs-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.