pact


Karma/jasmine/pact-js example using requirejs


I am working on the karma/jasmine example. It works fine as-is. I need to get it to work with requirejs. When I introduce requirejs and convert the client and client-spec classes to AMDs, I start getting this error:
PhantomJS 2.1.1 (Windows 7 0.0.0) Client sayHello should say hello FAILED
TypeError: undefined is not a constructor (evaluating 'Pact') in js/client-spec.js (line 11)
js/client-spec.js:11:28
To see the problem, you can look at my example project. To run it:
Extract the zip file
From the PactTest directory, run:
npm install
After that is finished, run:
npm run test:client
Cheers,
Mike

Related Links

Karma/jasmine/pact-js example using requirejs
Does Pact support REST and JMS?
Pattern match for individual parameters in pact-consumer tests
Starting point for PACT-JS newbie
Using pact for contract tests on CI in one container without a pipeline?
Who is the consumer in a POST scenario?
How to mock user authentication on Rails with Pact contract verification?
Pact verify provider, what does Pact::UnexpectedIndex mean?
Pact Matcher - How to use “each like” for an array of arrays values
Using Pact Broker
Pact - how to write expectations on requests?
PACT: How to guard against consumer generating incorrect contracts
Missing 'PactFragment' in package au.com.dius.pact.model
Why is this pact-jvm provider test failing?
pact-jvm Consumer Pact Test
How to have tests distributed across classes at provider end for same consumer

Categories

HOME
joomla
network-programming
cluster-analysis
pelican
liquibase
data-modeling
spss
arguments
google-docs-api
symfony-sonata
flowtype
markdown
rmarkdown
android-webview
restheart
revit-api
promotions
ephesoft
aws-sdk-cpp
urllib2
resharper
saucelabs
eclipse-orion
opendaylight
tag-cloud
k-means
virtuemart
include-path
connectiq
policy
knapsack-problem
libxml2
git-submodules
selenium3
log4net-configuration
storefront
android-scrollview
kepserverex
pygraphviz
jvisualvm
google-cloud-powershell
visio-2010
vertex
seyren
petapoco
was
racket-student-languages
csc
cexception
ideavim
ewam
imageicon
jcomponent
redquerybuilder
traminer
pdcurses
vectordrawable
veeam
autopep8
applinks
fiware-health
quickfixn
system.io.packaging
sync
powerpoint-2010
scjp
mixradio
xcode6.1-gm-seed
usersettings
servicemanager
rbm
linqdatasource
quit
junit-rule
php-gettext
maven-eclipse-plugin
mscorlib
symfony-1.2
excellibrary
arraycollection
table-valued-parameters
morfik
asp.net-1.1

Resources

Encrypt Message