Skip to content

Commit eaf9718

Browse files
author
Ben Monro
committed
reworking from start
1 parent 7613441 commit eaf9718

File tree

5 files changed

+2
-21
lines changed

5 files changed

+2
-21
lines changed

package.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,5 @@
2929
},
3030
"dependencies": {
3131
"@babel/runtime": "^7.4.3"
32-
},
33-
"xjest": {
34-
"testMatch": [
35-
"**/test/**/*.js"
36-
],
37-
"transform": {
38-
"\\.js$": "babel-jest",
39-
"\\.(html|svelte)$": "./test/transform"
40-
},
41-
"transformIgnorePatterns": [
42-
"/node_modules/(?!svelte).+\\.js$"
43-
],
44-
"moduleFileExtensions": [
45-
"js",
46-
"json",
47-
"html",
48-
"svelte"
49-
]
5032
}
5133
}
File renamed without changes.
File renamed without changes.

tests/queries.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// const App = require("../src/App.svelte");
22
// const { render } = require("../src");
3-
import App from "../src/App.svelte";
3+
import App from "../src/example/App.svelte";
44
import { render } from "../src";
55
describe("App", () => {
66
test("should render", () => {

tests/transform.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ const { compile } = require("./compile");
44
module.exports.process = (_s, filePath, _c, _o) => {
55
let code, map;
66
compile(filePath, "App", {}).then(comp => {
7-
console.log("comp", comp.code);
7+
88
code = comp.output[0].code;
99
map = comp.output[0].map;
1010
});
11-
console.log(code);
1211
deasync.loopWhile(() => !code && !map);
1312

1413
return { code, map };

0 commit comments

Comments
 (0)