Comments (2)
Array#flat
は Node.js 10 では使えないらしい。
Babel と Jest の設定をちゃんとすれば動くのではないかと思ったが、一旦は無視することにした
% npm run test
> [email protected] test /home/hikaru/ghq/src/github.com/515hikaru/pnovel
> jest
FAIL __tests__/parser_test.js
● parser › parse testing
TypeError: l.flat is not a function
1030 |
1031 | function makeLine(l) {
> 1032 | const chars = l.flat(2)
| ^
1033 | return chars.join("").trim().replace(/(\r\n|\n|\r)/gm, "")
1034 | }
1035 |
at makeLine (parser/parser.js:1032:23)
at peg$c5 (parser/parser.js:158:21)
at peg$parsesentence (parser/parser.js:694:14)
at peg$parseblock (parser/parser.js:384:16)
at peg$parsedoc (parser/parser.js:357:10)
at peg$startRuleFunction (parser/parser.js:347:10)
at peg$parse (parser/parser.js:1042:16)
at Object.test (__tests__/parser_test.js:53:12)
PASS __tests__/eval_test.js
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 failed, 5 passed, 6 total
Snapshots: 0 total
Time: 1.262 s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: `jest`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/hikaru/.npm/_logs/2020-05-26T14_26_11_918Z-debug.log
from pnovel.
無理にしなくて良い気がしてきた。対応しない。
from pnovel.
Related Issues (20)
- なろうモード HOT 4
- Release automation
- 先頭に全角空白をいれないようにするマーク
- 会話文だとルビ記法が動かない
- Pixiv 小説のルビ記法をパースできるようにする
- 地の文の途中で”「”があるとそこから会話ブロックが始まってしまう
- コメントしかないブロックも改行してしまう HOT 3
- 機能のオン/オフの選択 HOT 2
- README改訂
- 会話の前にコメントを着けると通常の文扱いされてしまう HOT 2
- Testing Issue
- Testing Issue
- prettierを導入する
- 見出しで raw 記法を使うとカンマが混ざる HOT 2
- 逆変換機能
- コメント+空白文字でパースエラー
- DockerイメージをGitHub Registryへの移管検討 HOT 2
- coverage向上 HOT 3
- 複数行のraw記法でシンタックスエラー HOT 1
- `#` 一文字の行だと syntax error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pnovel.