[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode fe63c579b5 158/222: Merge pull request #12
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode fe63c579b5 158/222: Merge pull request #120 from emacs-typescript/tsx-tests |
Date: |
Sun, 6 Feb 2022 16:59:28 -0500 (EST) |
branch: elpa/typescript-mode
commit fe63c579b51c7943f0c78702adbf1547b29cf6ed
Merge: 706f938aef 871c23111a
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: GitHub <noreply@github.com>
Merge pull request #120 from emacs-typescript/tsx-tests
add a test for simple tsx
---
Dockerfile | 14 ++++++++++++++
README.md | 11 +++++++++++
typescript-mode-general-tests.el | 6 ++++++
3 files changed, 31 insertions(+)
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000000..de988623e3
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM ubuntu:bionic
+
+RUN apt-get update && \
+ apt-get install -y \
+ make curl python git emacs
+
+RUN curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
+ENV PATH="/root/.cask/bin:${PATH}"
+
+RUN mkdir -p /typescript-mode
+COPY . /typescript-mode
+WORKDIR /typescript-mode
+
+CMD ["make", "test"]
diff --git a/README.md b/README.md
index 0cb72633b2..fb090c3ee0 100644
--- a/README.md
+++ b/README.md
@@ -50,6 +50,17 @@ to `false`: `tsc --pretty false`. However, doing this does
more than
just turning off the colors. It also causes `tsc` to produce less
elaborate error messages.
+# Contributing
+
+To run the tests you can run `make test`.
+
+If you prefer, you may run the tests via the provided `Dockerfile`.
+
+```bash
+docker build -t typescript-mode .
+docker run --rm -v $(pwd):/typescript-mode typescript-mode
+```
+
# Other Typescript-packages of interest
While `typescript.el` may *not* provide a full kitchen-sink, the good
diff --git a/typescript-mode-general-tests.el b/typescript-mode-general-tests.el
index 7185a3643a..2c022cc1e3 100644
--- a/typescript-mode-general-tests.el
+++ b/typescript-mode-general-tests.el
@@ -349,6 +349,12 @@ function foo<Z, Y, Z & Y, Z | Y | Z, Y<X<X, Y>>>()\n"
(("Z" "Y" "X") . font-lock-type-face)
(("<" ">" "," "&" "|") . nil))))
+(ert-deftest font-lock/tsx ()
+ "Tests that tsx blocks are not considered generics by virtue of the <."
+ (font-lock-test
+ "<div>test</div>"
+ '((("div" . nil)))))
+
(ert-deftest font-lock/regexp ()
"Regular expresssions should be fontified as string constant."
(let ((content "=/foo/ (/bar/ ,/baz/ :/buzz/"))
- [nongnu] elpa/typescript-mode 3361adad67 093/222: Prevent messing up comment fontification when filling paragraphs., (continued)
- [nongnu] elpa/typescript-mode 3361adad67 093/222: Prevent messing up comment fontification when filling paragraphs., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5350c45aec 104/222: Add function to convert plain strings to template strings., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 7a5c74d88e 109/222: Merge pull request #72 from Wilfred/remove_cpp, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode c2d72b7d81 116/222: Fix unwanted indentation after non-keyword "each", ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 0d32c85bfb 110/222: Drop typescript-parent-mode., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5b6d60a2b2 118/222: Fix indentation after keyword-lookalike methods., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 6a6c63ad5e 126/222: Extract test utilities, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 72ec0f93aa 125/222: Merge pull request #90 from jack-williams/add-never, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 69607202bc 139/222: Make GPL license discoverable by Github., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f20103a448 154/222: Add `delete-selection` hints, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode fe63c579b5 158/222: Merge pull request #120 from emacs-typescript/tsx-tests,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode bd15f212a7 165/222: Implement support type-highlighting in some basic declarations, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 444aa36ec2 169/222: Fix the indentation of member expressions and continued expressions., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a8b7e76e85 171/222: Fix infinite loop in indentation., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 62e0366b46 181/222: Remove debugging code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a504b6f571 182/222: Merge pull request #1 from jkdufair/jkdufair-remove-debugging-code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f36fddeb54 186/222: Merge pull request #136 from phst/dup, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 178ceca2d4 188/222: Add option for list items indenting, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 2b1f04a166 191/222: Use ‘(should-not …)’ instead of ‘(should (not …))’., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode daded219e6 199/222: Create initial GitHub actions build-definition, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode ab9c2e4fd0 209/222: Merge pull request #153 from emacs-typescript/feature/build-fix, ELPA Syncer, 2022/02/06