Skip to content

Commit

Permalink
fixup: skip Svelte 5 module tests while failing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed May 23, 2024
1 parent 6a51913 commit cbf67fb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
8 changes: 2 additions & 6 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,9 @@ npm run test

## Svelte 5 (ESM)

A minimal Svelte 5 test to ensure Svelte 5 components and `.svelte.js` modules work with Jest.
A minimal Svelte 5 test to ensure Svelte 5 components and `.svelte.js` modules work with Jest. No special steps were taken to create this suite. It only contains a few components and their associated tests.

### Bootstrapping the project

No special steps were taken to create this suite. It only contains a few components and their associated tests.

### Run the tests
### Run the Svelte 5 tests

```shell
pnpm build
Expand Down
2 changes: 1 addition & 1 deletion e2e/svelte-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"svelte": "^5.0.0-next.136",
"svelte": "^5.0.0-next.139",
"svelte-jester": "workspace:*"
},
"dependenciesMeta": {
Expand Down
8 changes: 5 additions & 3 deletions e2e/svelte-5/src/module.test.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { test } from "@jest/globals";

import * as Subject from "./module.svelte.js";
// TODO(mcous, 2024-05-23): this import fails
// See https://github.com/svelteness/svelte-jester/pull/283
// import * as Subject from "./module.svelte.js";

test("get current count", () => {
test.skip("get current count", () => {
const subject = Subject.createCounter();
const result = subject.count;

expect(result).toBe(0);
});

test("increment", () => {
test.skip("increment", () => {
const subject = Subject.createCounter();

subject.increment();
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbf67fb

Please sign in to comment.