return function()local N=require(script.Parent.Parent.createElement)local R=require(script.Parent.Parent.createReconciler)local z=require(script.Parent.Parent.createSpy)local V=require(script.Parent.Parent.NoopRenderer)local x=require(script.Parent.Parent.Type)local b=require(script.Parent.Parent.Component)local q=R(V)it("\115\104\111\117\108\100 \098\101 \105\110\118\111\107\101\100 \119\104\101\110 \109\111\117\110\116\101\100",function()local R=b:extend("\077\121\067\111\109\112\111\110\101\110\116")local V=z()R.didMount=V.value function R.render(N)return nil end local K=N(R)local w=nil local U="\084\101\115\116"q.mountVirtualNode(K,w,U);(expect(V.callCount)).to.equal(1)local l=V:captureValues("\115\101\108\102");(expect(x.of(l.self))).to.equal(x.StatefulComponentInstance)end)end
return function()
	local createElement = require(script.Parent.Parent.createElement)
	local createReconciler = require(script.Parent.Parent.createReconciler)
	local createSpy = require(script.Parent.Parent.createSpy)
	local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
	local Type = require(script.Parent.Parent.Type)

	local Component = require(script.Parent.Parent.Component)

	local noopReconciler = createReconciler(NoopRenderer)

	it("should be invoked when mounted", function()
		local MyComponent = Component:extend("MyComponent")

		local didMountSpy = createSpy()

		MyComponent.didMount = didMountSpy.value

		function MyComponent:render()
			return nil
		end

		local element = createElement(MyComponent)
		local hostParent = nil
		local key = "Test"

		noopReconciler.mountVirtualNode(element, hostParent, key)

		expect(didMountSpy.callCount).to.equal(1)

		local values = didMountSpy:captureValues("self")

		expect(Type.of(values.self)).to.equal(Type.StatefulComponentInstance)
	end)
end
