daml/templates/create-daml-app-test-resources
Gary Verhaegen dd5543eaf2
create-daml-app: make tests pass on m1 (#15031)
This is very much a "just make it work" type of patch. The main issues
were:

- A bunch of type errors in the `index.test.ts` file when opened in VS
  Code. I'm not sure how it happened, but it's possible I'm just using a
  more recent TS compiler than whoever edited this last.
- `localhost`, on my machine at least, resolves to `::1`, and therefore
  the connections were just not established. I've opted for replacing
  `localhost` with explicit `127.0.0.1`.
- `npm-cli.js` was not an executable in my `PATH`, and won't be for
  most users, but `npm` is not on our testing infrastructure's `PATH`.

Those tests are obviously not tested by CI, so please review carefully /
test this on your own machine before approving.

CHANGELOG_BEGIN
CHANGELOG_END
2022-09-23 04:57:47 +02:00
..
index.test.ts create-daml-app: make tests pass on m1 (#15031) 2022-09-23 04:57:47 +02:00
messaging.patch Support getting started guide on Daml Hub (#12878) 2022-02-11 16:41:07 +00:00
testDeps.json Upgrade jest to the latest version (#10107) 2021-06-24 11:16:29 +00:00