Skip to content

Commit

Permalink
Use webpack instead browserify to build browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Nov 30, 2024
1 parent 96f4392 commit 3dc2547
Show file tree
Hide file tree
Showing 6 changed files with 1,390 additions and 1,332 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@ node_modules: package-lock.json
tests: node_modules $(BUILDDIR)/$(JSON_ACIS) $(BUILDDIR)/$(BYTECODES)
npm test

$(BUILDDIR)/js: | $(BUILDDIR)
mkdir -p $@

$(BUILDDIR)/js/tests.js: node_modules $(BUILDDIR)/$(JSON_ACIS) $(BUILDDIR)/js
$(BUILDDIR)/js/index.html: node_modules $(BUILDDIR)/$(JSON_ACIS) $(BUILDDIR)/$(BYTECODES)
npm run browser-test-bundle

browser-tests: $(BUILDDIR)/js/tests.js
browser-tests: $(BUILDDIR)/js/index.html
ifneq ($(shell which open),)
@open tests/browser/index.html
@open build/js/index.html
else
@echo Open "tests/browser/index.html" in your browser.
@echo Open "build/js/index.html" in your browser.
endif

integration-tests: $(INTEGRATION_TESTS) | node_modules $(BUILDDIR)/$(JSON_ACIS)
Expand Down
Loading

0 comments on commit 3dc2547

Please sign in to comment.